Posted by David Haynes on 03/08/06 21:02
alex wrote:
>> Just to be clear.
>> "/path/to/inc" in your case is an absolute path not a relative one -
>> right?
>> For example:
>> if your web site is hosted in /opt/web/my_site
>> and your include files are in /opt/web/my_site/includes
>>
>> then your include_path would be ".:/opt/web/my_site/includes"
>>
>> -david-
>>
>
> Ok, it's clear.
> Still, it doesn't work :-(
> I think it comes from the URL rewriting as the "not URL-rewrited" file works
> but not the "URL rewrited" one.
> What do you think ?
>
>
Follow Jerry Stuckle's advise and make the include relative to
$_SERVER['DOCUMENT_ROOT'].
In my case, my includes are not in the web tree, so setting the path is
appropriate.
BTW: I don't think URL rewriting has any affect on the include_path
since a) the path is absolute and b) PHP does care about URLs.
-david-
[Back to original message]
|