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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php