Re: include_path and absolute paths in include functions

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

 



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.

...

--
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