file include relative file addressing.

From: Date: Sun, 08 Sep 2002 11:34:46 +0000
Subject: file include relative file addressing.
Groups: php.general 
Request: Send a blank email to php-general+get-115657@lists.php.net to get a copy of this message
From the root of a website: / I had a file called /my.php which included a file /include/blah/my.inc.php In my.php if I put the include_once( "./include/blah/my.inc.php" ); it works fine when my.php is in the root of the site. If I move /my.php to /blah/my.php, no matter how I address ../include/blah/my.php or /include/blah/my.php I keep getting path errors. How do I get around this problem using only relative paths (no absolute or placing in an include path) Neil.

« previous php.general (#115657) next »