note 49395 added to features.safe-mode

From: Date: Wed, 26 Jan 2005 16:30:31 +0000
Subject: note 49395 added to features.safe-mode
Groups: php.notes 
Request: Send a blank email to php-notes+get-84030@lists.php.net to get a copy of this message
i encountered a system (open_basedir restriction in effectand safemode enabled) which denied include()s (neither relative nor absolute paths), if the executing file is in a subdir, to files located in a subdir of the executing file's subdir. e.g. the script is located in "root/dir1/index.php" and the file to be included in "root/dir1/dir2/somefile.end". this resulted in a warning (Warning: open_basedir restriction in effect. File is in wrong directory ...). (include_path set to ".:usr/share/pear") interesting enough, placing the script in the root directory "resolved" the problem and worked just as usual. ---- Manual Page -- http://www.php.net/manual/en/features.safe-mode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49395 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49395&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49395&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49395&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49395&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49395&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49395&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84030) next »