Re: .INC files
| From: | Rasmus Lerdorf | Date: | Thu, 02 Jun 2005 08:36:37 +0000 |
| Subject: | Re: .INC files | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216208@lists.php.net to get a copy of this message | ||
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