irgendwie kapiert ich's nicht so ganz was die da meinen:
Where is my base directory?
Each website has its own base directory. Where possible always use relative filename mappings. If you *must* use a full path please derive from the $DOCUMENT_ROOT environment variable in your script. This will ensure that your website works reliably even if it is moved to a different directory.
Here is a sample script which outputs your base directory:
<? echo $DOCUMENT_ROOT ?>
Muss ich da irgendwas in meinem PHP-Script hinzufügen, oder was??
Where is my base directory?
Each website has its own base directory. Where possible always use relative filename mappings. If you *must* use a full path please derive from the $DOCUMENT_ROOT environment variable in your script. This will ensure that your website works reliably even if it is moved to a different directory.
Here is a sample script which outputs your base directory:
<? echo $DOCUMENT_ROOT ?>
Muss ich da irgendwas in meinem PHP-Script hinzufügen, oder was??
Kommentar