You are here: Re: Php configuration - include path problem « PHP Programming Language « IT news, forums, messages
Re: Php configuration - include path problem

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-

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация