note 47589 added to function.require
| From: | danielm at unb dot br | Date: | Mon, 22 Nov 2004 07:50:53 +0000 |
| Subject: | note 47589 added to function.require | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80850@lists.php.net to get a copy of this message | ||
if you want to include files with an absolut path reference, you can use:
require ($_SERVER["DOCUMENT_ROOT"]."/path/to/file.php");
this way you can organize your files in subdirectories trees.
----
Manual Page -- http://www.php.net/manual/en/function.require.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47589
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47589&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47589&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47589&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47589&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47589&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47589&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47589&report=yes
Search -- http://master.php.net/manage/user-notes.php