|
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
Navigation:
[Reply to this message]
|