PDA

View Full Version : php in html file



estuartie
Jan 15th, 2009, 11:38 AM
Hiya, Ive some sites that were built with html and I need to replace the index.html with a php extension as I have placed some php code on that page. can I just save it as a .php extension without any problems?

abduraooft
Jan 15th, 2009, 11:54 AM
Does your server support a php file?

VIPStephan
Jan 15th, 2009, 12:48 PM
Hiya, Ive some sites that were built with html and I need to replace the index.html with a php extension as I have placed some php code on that page. can I just save it as a .php extension without any problems?

Usually yes, but as abduraooft implied, your server has to support PHP, otherwise it would just print out the PHP code, not execute it.