eduard Posted March 10, 2011 Share Posted March 10, 2011 A php file that starts with <html>, <body> is a php file and NOT a html file (as I think!)? Link to comment Share on other sites More sharing options...
birbal Posted March 10, 2011 Share Posted March 10, 2011 A php file that starts with <html>, <body> is a php fileno matter what it contains. and how it contents. php gives a output to browser. we send html tags as ouput so at the end of the process we see a html tag based page.(cause generaly it sends as text/html mime type).any php command is only executable under the <?php and ?> tag otherwise it will be shown as plain text like Link to comment Share on other sites More sharing options...
eduard Posted March 10, 2011 Author Share Posted March 10, 2011 A php file that starts with <html>, <body> is a php fileno matter what it contains. and how it contents. php gives a output to browser. we send html tags as ouput so at the end of the process we see a html tag based page.(cause generaly it sends as text/html mime type).any php command is only executable under the <?php and ?> tag otherwise it will be shown as plain text likeOk, thanks! Clear! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.