Re: Can't find .php3 files
| From: | Peter Ford | Date: | Wed, 09 Jan 2008 09:11:03 +0000 |
| Subject: | Re: Can't find .php3 files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266953@lists.php.net to get a copy of this message | ||
Jim wrote:
> I'm sure this is a FAQ but I can't seem to come up with the right search
> keys to dig it out.
> I'm trying to help a friend migrate his application to php 5 from
> another system. The problem seems to be that he references files
> (require, include, etc) that have a .php3 extension, however there are
> no files in those locations with the .php3. There are files with .php
> extensions. It's running on a system that has php 4 on it.
>
> So I'm sure either php or Apache is rewriting the files somehow, but I
> don't know how.
>
> Can someone please point me to the appropriate documentation or give me
> a hint as to what is going on here?
>
> Thanks,
> Jim.
Take a look in the Apache reference docs for mod_rewrite (exactly where you look
depends on which version of Apache you are using).
Then search for (a) any .htaccess files in the web-app, and (b) any Apache
config files: this will be Linux-distro-dependent but somewhere like /etc/apache
or /etc/httpd might be the first thing to try...
You are looking for either directory-specific or system-wide Apache RewriteRule
directives, especially those that contain a pattern which matches ".php3"
If you can't find anything like that, then Apache ain't rewriting...