67nmark Posted November 11, 2010 Share Posted November 11, 2010 Good Morning, I am literally just starting out with php but wanted to clarify whether I should be creating .php files or .html files. I have found a page which states: "For Windows or IIS servers - You do not have an .htaccess file. Windows IIS servers also cannot run php on html pages. Your only option for windows IIS servers is to use .shtml or .php pages with the php option from the reader." Is this correct and does this mean that I should always err on the side of caution and use .php files instead of .html file? Thanks in advance, Mark Link to comment https://forums.phpfreaks.com/topic/218446-new-to-php-could-someone-tell-me-if-this-statement-is-correct/ Share on other sites More sharing options...
Rifts Posted November 12, 2010 Share Posted November 12, 2010 you can not write php inside html files you have to use .php Link to comment https://forums.phpfreaks.com/topic/218446-new-to-php-could-someone-tell-me-if-this-statement-is-correct/#findComment-1133285 Share on other sites More sharing options...
Dragosvr92 Posted November 12, 2010 Share Posted November 12, 2010 You can include .php files on .html files if you want to know how ask and ill hunt for the Apache and HTML pieces of script Link to comment https://forums.phpfreaks.com/topic/218446-new-to-php-could-someone-tell-me-if-this-statement-is-correct/#findComment-1133295 Share on other sites More sharing options...
67nmark Posted November 12, 2010 Author Share Posted November 12, 2010 Thanks very much Link to comment https://forums.phpfreaks.com/topic/218446-new-to-php-could-someone-tell-me-if-this-statement-is-correct/#findComment-1133326 Share on other sites More sharing options...
BlueSkyIS Posted November 12, 2010 Share Posted November 12, 2010 i typically use a .html extension on all of my public PHP pages so as not to divulge so easily that the code is PHP. Link to comment https://forums.phpfreaks.com/topic/218446-new-to-php-could-someone-tell-me-if-this-statement-is-correct/#findComment-1133337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.