Re: php extensions
| From: | Marc Koschewski | Date: | Wed, 02 Aug 2000 13:44:42 +0000 |
| Subject: | Re: php extensions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9688@lists.php.net to get a copy of this message | ||
> Have just installed php4 on Apache and it works fine for files
> with php extension. However, would like files file php, php3,
> and php4 extensions to be recognized.
>
> Current Apache configuration is:
>
> <IfModule mod_php4.c>
> AddType application/x-httpd-php .php
> </IfModule>
>
> have tried
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
>
> and
>
> AddType application/x-httpd-php .php .php3 php4
>
> but only files with .php extension are recognized.
> What am I doing wrong?
>
> Urb
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
Hi Urb,
the block
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>
needs to be like this:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php3 .php4
</IfModule>
Bye, Marc