You can use an absolute path for both, or use a relative path for both. You can use ../../etc as your path. Just use whatever is easier for you to understand and code. It doesn't make a difference.
---John Holmes... > -----Original Message----- > From: Manisha [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 29, 2002 10:02 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] File Path - Which way is better ? > > e.g my directory structure is like below > > > /usr/manisha/www/invitation - where all php files are situated > > /usr/manisha/incFiles - where all files are situated - from where I want > to > read > > There are also some files > > /usr/manisha/www/invitation/msgFiles - From this directory also I am > reading some files > > So you mean to say for the first one read thr direct path for second one > virtual path ? > What is reason behind it ? Is it that for first one it is not possible to > provide the virtual path (../../incFiles )? > > > > > > > At 11:54 AM 5/30/02 +1000, you wrote: > >IMO: use relative paths if the two files will be in the same place > relative > >to each other, otherwise use absolute > > > >-----Original Message----- > >From: Manisha [mailto:[EMAIL PROTECTED]] > >Sent: Thursday, May 30, 2002 11:51 AM > >To: [EMAIL PROTECTED] > >Subject: [PHP] File Path - Which way is better ? > > > > > >I am using file to read / write data. When I give file path I can give it > >in 2 ways. > > > >- As a Virtual path > >- Real physical complete path. > > > >Which way is better and in which situation ? I just want to open up > >discussion so that I will come to know the pros and cons for both the > >methods. > > > > > >Thanks in advance and regards > >Manisha > > > > > > > > > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php