RE: [PHP] File Path - Which way is better ?
| From: | Manisha | Date: | Thu, 30 May 2002 02:02:06 +0000 |
| Subject: | RE: [PHP] File Path - Which way is better ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99827@lists.php.net to get a copy of this message | ||
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:manisha@aurica.com] Sent: Thursday, May 30, 2002 11:51 AM To: php-general@lists.php.net 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