Re: include_path and absolute paths in include functions
| From: | Jochem Maas | Date: | Thu, 11 May 2006 21:58:14 +0000 |
| Subject: | Re: include_path and absolute paths in include functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236035@lists.php.net to get a copy of this message | ||
Steven Stromer wrote:
For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once ("lib/included.php");this is what should work given you ini path. maybe check the file permissions are in order.
However, I am now needing to switch to absolute paths: include_once ("/lib/included.php");why do you need to do that? that include will bypass the include_path and only look in the /lib dir on your machine - which is not what you want I think. ...