Creating dynamic webpages in html file

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
Janu
Forum Newbie
Posts: 3
Joined: Wed Jun 22, 2005 1:35 pm

Creating dynamic webpages in html file

Post by Janu »

Hi experts,
I am given a task to generate dynamic webpages but the end file should be in html format i.e. *.html. Instead of displaying .php extension at the end, I just want to display it as simple html file.
One more thing, I also need to develop a Webservice kind of thing (in Php) through which I would be retriveing data (files) from my server and I should be able to edit them freely and upload it back to the server so that the end users would be able to see updated html file on their browser easily.
If I have confused you, drink Cappuccino !! and then answer me , but please answer as I am stuck and ran out of Cappuccino.
Janu
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

dont cross post pppppplease
srirams
Forum Commoner
Posts: 36
Joined: Wed May 25, 2005 8:57 am
Location: India
Contact:

Post by srirams »

If you want to create a create a HTML file on the fly you might want to look at the code used in Big Brother application. http//bb4.com i think. Check the actual URL in google.
Probably you might have to have a compiled program to do that.

Cheers
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Add .html to the php handler in httpd.conf if you use apache.

All HTML files will now parse any PHP code contained inside them before sending data back to the browser. The end-user knows no different ;)

If I remember rightly...

Code: Select all

AddHandler php-script .php .html
Post Reply