Re: .INC files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux