Php include statements


#1

I just want to use simple php include statements to facilitate navigation. The test did not work, I’m told that means your server may not be php ready, yet that doesn’t seem the case, what am I missing?


#2

The servers here definitely support php. I suspect you’ve got a bug in your code. If you want someone to help you, please post the code you’re using so we can debug it.


#3

It could be your pages are using an html extention instead of php extention. Also the server will find an html page of the same name before the page with php extention.
Just for clarification:
Index.html will not parse php code unless you change the htaccess file.
Index.html will be used before index.php if the server finds that file.
Silk

My website


#4

Is there an error message of any kind?


si-blog | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]


#5

If you are trying to “include” stuff using urls (http:blah.com/whatever.etc) is will not work on DH, as allow_url_fopen is disabled here ( as are other fopen functions that load remote code). This is easily worked around using curl, or by using path references to local files rather than urls.

–rlparker