note 34128 added to function.require-once
| From: | barry at nauta dot be | Date: | Wed, 16 Jul 2003 19:40:53 +0000 |
| Subject: | note 34128 added to function.require-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52224@lists.php.net to get a copy of this message | ||
The solution posted earlier
( <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/subdir/file.php'); ?> )
is only a solution if you have access to the actual server root (i.e. /var/www/html).
If you are working under a user directory ( /home/your_user/public_html ) for instance, this will
not work
----
Manual Page -- http://www.php.net/manual/en/function.require-once.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34128
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34128&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34128&report=yes