Afficher un message
Vieux 16/02/2005, 13h06   #3
sharma
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 processing php files with html extensions

Hey sorry,

Its not in php.ini...

Its in Apache's configration file, httpd.conf, you need an AddType
directive that matches scripst ending in .php with
application/x-httpd-php.


1)search for this in php.ini
AddType application/x-httpd-php

2) .html at the end of the line like this

AddType application/x-httpd-php .php .html

if you want htm page to run add .htm ..
AddType application/x-httpd-php .php .html .htm

3)restart Apache...

If you are not having access to php.ini.. put it line 2 in .htacess
file and place it in your webroot...

Hope this s..

Thanks,
sharma

  Réponse avec citation
 
Page generated in 0,04849 seconds with 9 queries