You are here: Re: The principle of include files in PHP, not as in C++ « PHP Programming Language « IT news, forums, messages
Re: The principle of include files in PHP, not as in C++

Posted by Jerry Stuckle on 10/15/07 23:28

Lars Eighner wrote:
> In our last episode, <1192482975.727615.56570@i13g2000prf.googlegroups.com>,
> the lovely and talented duzhidian@gmail.com broadcast on comp.lang.php:
>
>> If I move the programs to other places, using absolute paths will
>> suffer, need to change every file.
>
> Generally I use a project.ini where I use set_ini to modify the include path
> for the project, then I never have to use paths in includes except for the
> path to project.ini (possibly), but since it is a perl one-line to change
> that (if necessary) I don't see the problem.
>
> PS: why ./lib/b.php instead of lib/b.php ?
>
>

Until you run into two files with the same name... As in two different
packages.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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