Re: Can't find .php3 files

From: Date: Wed, 09 Jan 2008 12:05:30 +0000
Subject: Re: Can't find .php3 files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266962@lists.php.net to get a copy of this message
Ford, Mike wrote:
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 Hi, Mike,
The include is more like require "../admin/admin.php3" I don't know exactly how Apache performs its magic so I wasn't sure that the request for an include file would even pass through Apache's hands. In my limited world, an include wouldn't have to involve Apache, just the file systems. We did look at the php.ini file in /etc and it was pretty much innocuous. Looked like a default from when the system was installed. I'll have a closer look today. Thanks. Jim

« previous php.general (#266962) next »