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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
67nmark Posted November 12, 2010 Author Share Posted November 12, 2010 Thanks very much Quote Link to comment 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. Quote Link to comment 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.