note 99351 deleted from function.set-include-path by danbrown

From: Date: Thu, 12 Aug 2010 14:30:57 +0000
Subject: note 99351 deleted from function.set-include-path by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171611@lists.php.net to get a copy of this message
Note Submitter: tom at r dot je ---- You are not able to add "../" to the include path, adding it has no effect and does not allow you to include files up a level. You must explicitly state the full path. You can work out the full path using: $path = substr(getcwd(), 0, strlen(getcwd())-strpos(DIRECTORY_SEPARATOR, strrev(getcwd())));

« previous php.notes (#171611) next »