RE: [PHP] Path question.
| From: | Dajka Tamas | Date: | Thu, 28 Jul 2011 13:03:56 +0000 |
| Subject: | RE: [PHP] Path question. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314232@lists.php.net to get a copy of this message | ||
Yes, can be. There is a predefined variable DIRECTORY_SEPARATOR, which you
can use:
on index.php let's say
define('DS',DIRECTORY_SEPARATOR');
define('MY_APP_ROOT',dirname(realpath(__FILE__)));
define('LIB_DIR',MY_APP_ROOT.DS."..".DS."location".DS."file");
Cheers,
Tamas
-----Original Message-----
From: Paul Halliday [mailto:paul.halliday@gmail.com]
Sent: Thursday, July 28, 2011 2:14 PM
To: PHP-General
Subject: [PHP] Path question.
I have a few scripts that use "../location/file"
Is this interpreted differently on some systems?
Thanks.
--
Paul Halliday
http://www.squertproject.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php