Re: [PHP] Re: Working directory of PHP pages?

2009-03-12 Thread haliphax
On Thu, Mar 12, 2009 at 12:47 AM, Clancy wrote: > On Wed, 11 Mar 2009 13:03:19 -0500, halip...@gmail.com (haliphax) wrote: > >>On Wed, Mar 11, 2009 at 12:44 PM, Shawn McKenzie wrote: >>> Clancy wrote: It is my understanding that when you open a page the PHP server looks for index.php i

Re: [PHP] Re: Working directory of PHP pages?

2009-03-11 Thread 9el
On Thu, Mar 12, 2009 at 11:47 AM, Clancy wrote: > > Something Stewart said the other day made me realise that there was a > fundamental error in > the way I was thinking about this question. I had been thinking that > opendir (.) opened > the root directory, and that paths such as Joe/Nurg.com we

Re: [PHP] Re: Working directory of PHP pages?

2009-03-11 Thread Clancy
On Wed, 11 Mar 2009 13:03:19 -0500, halip...@gmail.com (haliphax) wrote: >On Wed, Mar 11, 2009 at 12:44 PM, Shawn McKenzie wrote: >> Clancy wrote: >>> 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

Re: [PHP] Re: Working directory of PHP pages?

2009-03-11 Thread haliphax
On Wed, Mar 11, 2009 at 12:44 PM, Shawn McKenzie wrote: > Clancy wrote: >> 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 sit

[PHP] Re: Working directory of PHP pages?

2009-03-11 Thread Shawn McKenzie
Clancy wrote: > 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 > alw