RE: Path question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Thursday, July 28, 2011 2:14 PM
To: PHP-General
Subject:  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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux