With includes, or whenever you are using files with PHP use the entire path.
It will be something like
/home/username/www/folder/file.php
Thats how i always do it unless the files are in the same dir as the one calling them.
Its easiest in my opinion.
Originally posted by mad-onion With includes, or whenever you are using files with PHP use the entire path.
It will be something like
/home/username/www/folder/file.php
Thats how i always do it unless the files are in the same dir as the one calling them.
Its easiest in my opinion.
You should check the documentation on this because I'm just a *total* newbie to PHP (just wrote a "hello world" last night in fact!) but doesn't $DOCUMENT_ROOT provide the path to your HTML document root so that:
Sometimes DOCUMENT_ROOT doesnt work how you'd expect on other servers. I have alwasy found it is is safest to use the entire path. Maybe its just one of my silly addictions.
Now well wait for freddy to come and shoot me down like im evil....welcome to sitepoint :-)
Bookmarks