For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > July 2004 > Re: Re: Frustrated with PHP?s "include"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Re: Frustrated with PHP?s "include"
Zurab Davitiani

2004-07-25, 3:55 am

steve wrote:

> huge maintenance pain. I am hoping that some php developers would
> respond as to why not make script inclusion simply relative to the
> including script, avoiding all the maintenance problems.


dirname(__FILE__) will get you the path from your included files. I don't
really see it as a "huge maintenance pain." Having include path relative to
included files may have a negative effect as well for systems that include
different modules or language files (with the same filenames) depending on
which top script is including them. So, it goes both ways.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com