note 65990 added to function.require
| From: | tjeerd at osu1 dot php dot net | Date: | Thu, 11 May 2006 13:41:55 +0000 |
| Subject: | note 65990 added to function.require | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111129@lists.php.net to get a copy of this message | ||
When using symbolic links with PHP, specify a dotslash './page.php' path to ensure that
PHP is looking in the right directory with nested requires:
E.g. when the required actual page1.php contains other require statements to, say page2.php, PHP
will search the path that the symbolic link points to, instead of the path where the symbolic link
lives. To let PHP find the other page2.php in the path of the symbolic link, a
require('./page2.php'); statement will solve the puzzle.
----
Server IP: 83.137.20.120
Probable Submitter: 213.84.166.144
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.require.php
Edit -- http://master.php.net/note/edit/65990
Del: integrated -- http://master.php.net/note/delete/65990/integrated
Del: useless -- http://master.php.net/note/delete/65990/useless
Del: bad code -- http://master.php.net/note/delete/65990/bad+code
Del: spam -- http://master.php.net/note/delete/65990/spam
Del: non-english -- http://master.php.net/note/delete/65990/non-english
Del: in docs -- http://master.php.net/note/delete/65990/in+docs
Del: other reasons-- http://master.php.net/note/delete/65990
Reject -- http://master.php.net/note/reject/65990
Search -- http://master.php.net/manage/user-notes.php