rjcfan4ever Posted July 27, 2011 Share Posted July 27, 2011 How to change a HTML page into a PHP page? Thanks, Rjcfan4ever Quote Link to comment https://forums.phpfreaks.com/topic/242945-how-to-change-a-html-page-into-a-php-page/ Share on other sites More sharing options...
bamfon Posted July 27, 2011 Share Posted July 27, 2011 Just change the file extension from html/htm to php open it up in notepad and press save as and put php at the end of its name Quote Link to comment https://forums.phpfreaks.com/topic/242945-how-to-change-a-html-page-into-a-php-page/#findComment-1247855 Share on other sites More sharing options...
rjcfan4ever Posted July 27, 2011 Author Share Posted July 27, 2011 Okey thank you Quote Link to comment https://forums.phpfreaks.com/topic/242945-how-to-change-a-html-page-into-a-php-page/#findComment-1247856 Share on other sites More sharing options...
AyKay47 Posted July 27, 2011 Share Posted July 27, 2011 test.html would be test.php remember that when using a php extension, you are able to incorporate HTML, PHP, javascript etc... with an .html or .htm extension, PHP is not valid... Quote Link to comment https://forums.phpfreaks.com/topic/242945-how-to-change-a-html-page-into-a-php-page/#findComment-1247861 Share on other sites More sharing options...
trq Posted July 27, 2011 Share Posted July 27, 2011 Unless you configure your server to serve .html files via the php interpreter. Quote Link to comment https://forums.phpfreaks.com/topic/242945-how-to-change-a-html-page-into-a-php-page/#findComment-1247864 Share on other sites More sharing options...
AyKay47 Posted July 27, 2011 Share Posted July 27, 2011 ah yes, thanks thorpe for that Quote Link to comment https://forums.phpfreaks.com/topic/242945-how-to-change-a-html-page-into-a-php-page/#findComment-1247867 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.