Jump to content

Archived

This topic is now archived and is closed to further replies.

XoNoX

Open index.html like index.php

Recommended Posts

Hi

I wanna change my php.ini, and open index.html like index.php.  The problem is my index.html is writed in php and all files has been named *.html but writed in php.

Any help¡? thanx

Share this post


Link to post
Share on other sites
Pardon? You want to parse html files as php?

You need to change you httpd.conf file, nothing to do with your php.ini.

Share this post


Link to post
Share on other sites
If you're running Apache it's in httpd.conf

AddType application/x-httpd-php .php .php4 .phtml

need it to have .html added also.. like this

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

And that should solve you're problem

Regards
Liam

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.