Re: Problems with includes
| From: | Andrew Ballard | Date: | Fri, 16 May 2008 19:43:13 +0000 |
| Subject: | Re: Problems with includes | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274447@lists.php.net to get a copy of this message | ||
On Fri, May 16, 2008 at 3:31 PM, Tyson Vanover <tvanover@pdx.edu> wrote:
> Dan Joseph wrote:
>
>> I'm pretty sure you're gonna need to include the entire path:
>>
>> require( "/srv/www/html/Tools/tool2/tool2.php" );
>>
>> for both of your tools.
>>
>
> So when php runs it's paths are drawn from the OS's structure and not
> apache's? hun. thanks!
>
No, RTM.
"Files for including are first looked for in each include_path entry
relative to the current working directory, and then in the directory
of current script."
http://www.php.net/manual/en/function.include.php
Andrew