note 112724 added to function.realpath

From: Date: Wed, 17 Jul 2013 07:40:16 +0000
Subject: note 112724 added to function.realpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-195649@lists.php.net to get a copy of this message
When using realpath (and similar functions) remember that PHP will take in to account open_basedir restrictions. So, if you do something like: <?php // test.php in httpdocs folder $path = realpath(dirname(__FILE__) . '/../application'); ?> where your open_basedir setting is set to the httpdocs folder and tmp, this will return false. You must set it to the level above (or off) for this to work. ---- Server IP: 69.147.83.199 Probable Submitter: 178.78.105.251 ---- Manual Page -- http://php.net/manual/en/function.realpath.php Edit -- https://master.php.net/note/edit/112724 Del: integrated -- https://master.php.net/note/delete/112724/integrated Del: useless -- https://master.php.net/note/delete/112724/useless Del: bad code -- https://master.php.net/note/delete/112724/bad+code Del: spam -- https://master.php.net/note/delete/112724/spam Del: non-english -- https://master.php.net/note/delete/112724/non-english Del: in docs -- https://master.php.net/note/delete/112724/in+docs Del: other reasons-- https://master.php.net/note/delete/112724 Reject -- https://master.php.net/note/reject/112724 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195649) next »