Processing .html with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
M77
Forum Newbie
Posts: 2
Joined: Sat Dec 11, 2004 4:53 am

Processing .html with PHP

Post by M77 »

Is there possibility to make when user enters in browser "www.domain.com/index.html" return him a page generated NOW with PHP? Maybe there is possibility to configure this way web server?
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Sure it is - you just need to tell your server to parse the .html files.

In apache:

Code: Select all

AddType application/x-httpd-php .html
M77
Forum Newbie
Posts: 2
Joined: Sat Dec 11, 2004 4:53 am

Post by M77 »

kettle_drum, thanx
Post Reply