RE: [PHP] Can't find .php3 files
| From: | Ford, Mike | Date: | Wed, 09 Jan 2008 10:25:23 +0000 |
| Subject: | RE: [PHP] Can't find .php3 files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-266956@lists.php.net to get a copy of this message | ||
Chris wrote:
>
> > I think you misunderstood. I have lots of file with things like
> >
> > require "admin.php3"
> >
> > But there is no admin.php3 anywhere. There is however a file
> > admin.php. Since this works on the old server then something on
> > that system is translating a request for a .php3 file to .php I'm
> > guessing. Apache or php but I don't know which.
>
> It will be apache.
If the line quoted above is exactly as it appears in the PHP script, then it will definitely *not*
be Apache. A require with just a filename like that goes straight to the file system, with nary even
a hint of a thought of involving Apache. So the admin.php3 file must exist *somewhere* in the file
system.
As someone else suggested, I think your best bet is to examine the include_path setting in php.ini
(via a phpinfo() script if necessary).
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 812 4730 Fax: +44 113 812 3211
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm