Reply to Re: Php configuration - include path problem

Your name:

Reply:


Posted by alex on 03/11/06 16:51

Sorry, I was away for a while.

> Follow Jerry Stuckle's advise and make the include relative to
> $_SERVER['DOCUMENT_ROOT'].

Ok, my problem is that I have many included scripts to change :-(

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

That's exaclty what I think... and it's the case on my production server
(and it was on my local machine few days ago).
Still, with my brand new xampp set up on my local dev machine, I now have
this problem (I didn't encounter it before with apache/php/mysql and zend
server).

I found a "solution" => adding http redirection in all my rewrite
conditions, i.e :
before : RewriteCond ^test$ /test.htm
after : RewriteCond ^test$ /test.htm [R=304]

It works but doesn't really satisfy me.

--
alex

[Back to original 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

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