Working directory of PHP pages?

From: Date: Wed, 11 Mar 2009 00:55:39 +0000
Subject: Working directory of PHP pages?
Groups: php.general 
Request: Send a blank email to php-general+get-289811@lists.php.net to get a copy of this message
It is my understanding that when you open a page the PHP server looks for index.php in the site root directory, and loads it. As a result the working directory of the page will be the root directory of the site. I have always worked on this assumption, and it has always been correct. On the other hand Stewart thinks that I cannot rely this, and am likely to get into trouble as a result. Are there any systems in which my assumption will not be correct?

« previous php.general (#289811) next »