On 07/28/2011 05:43 PM, Paul Halliday wrote:
I have a few scripts that use ../location/file
Is this interpreted differently on some systems?
Thanks.
I have no idea about it, but I generally use realpath() to avoid any
such problems. Windows may have, because it uses backward slashes
On 28 July 2011 18:06, Nilesh Govindarajan cont...@nileshgr.com wrote:
On 07/28/2011 05:43 PM, Paul Halliday wrote:
I have a few scripts that use ../location/file
Is this interpreted differently on some systems?
Thanks.
Use __DIR__.../location/file otherwise files using these
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.DSDS.location.DS.file);
Cheers,
Tamas
-Original
On 28 July 2011 13:36, Nilesh Govindarajan cont...@nileshgr.com wrote:
On 07/28/2011 05:43 PM, Paul Halliday wrote:
I have a few scripts that use ../location/file
Is this interpreted differently on some systems?
Thanks.
I have no idea about it, but I generally use realpath() to avoid any
At 9:18 PM -0400 3/28/11, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
On 29 March 2011 19:41, D. Dante Lorenso da...@lorenso.com wrote:
On 3/28/11 8:18 PM, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above,
On 3/28/11 8:18 PM, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
/includes/include_file.php
I
On Mon, Mar 28, 2011 at 09:18:39PM -0400, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
8 matches
Mail list logo