Reply to Re: [PHP] .INC files

Your name:

Reply:


Posted by Rasmus Lerdorf on 06/02/05 11:36

Rory Browne wrote:

> Alternatively if the include_path, contained the path that your
> includes were in, (and only the directory where you put your
> includes), then php wouldn't have very far to search.

Well, no real difference between that and just making sure most of your
includes are in the first path in the include_path list. It's still an
extra stat() syscall to do an include_path check. And by the way, a
simple:

include 'foo.inc';

is an include_path include which has the extra syscall overhead. By
default "." is in the include_path. A quick way to track these down is
to simple remove "." from your include_path and by looking at the errors
go through and change all those to:

include './foo.inc';

-Rasmus

[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

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