PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Earlier I had a shtml file and included some php code in it, and within that code there was a setcookie command. Whenever I ran this code everything in the included php code ran fine except for the setcookie. I had to change my .shtml page into a php page and have the section with the setcookie code written out in that page to get it working.
However, I was wondering now that I changed my page to .php , will it load slower than if it was a shtml or an html ?
i'm fairly certian it is based on what is on the page rather than what extension you use....but..you can test it (then take into account your server). write out a html page, then give it a php extension. run it through a speed tester...pretty sure it'll be the same
The problem is that .shtml usually means that it's allowed to have <-- cgi include --> tags.. And for each of those tags a (cgi) binary (php exectuable) is started.. That is really slow