Jump to content


Photo

Open index.html like index.php


  • Please log in to reply
3 replies to this topic

#1 XoNoX

XoNoX
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 04 July 2006 - 03:23 PM

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

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 04 July 2006 - 03:40 PM

Pardon? You want to parse html files as php?

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

#3 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 04 July 2006 - 03:40 PM

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
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#4 XoNoX

XoNoX
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 04 July 2006 - 03:53 PM


I will try it.
THanx :D





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users