whiteboikyle Posted April 23, 2009 Share Posted April 23, 2009 I had Wamp5 and it allowed me to use Short PHP Tags and it ignored some errors like displaying Session_Start() twice in a row and etc.. How can i change it to that on my Wampserver 2? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 23, 2009 Share Posted April 23, 2009 it ignored some errorsNo it did not. The errors were simply not being displayed. Each line of your code that generates a error, even if the error is not displayed, takes at least 10 times longer to execute because php must still figure out what to do and to recover from the error. Fix your code so that does not normally generate any errors during its normal execution. Your code will run faster and you won't be filling up your server's error log file. Short open tags should also not be used because they result in code that won't work on some servers (which you just found out) and you won't always have the ability to change the setting that would allow them to work. php.net is also taking steps in php6 to generate error messages concerning using short open tags (i.e. second step toward eliminating them, the first step as you just found is for them to be off by default in current versions of php.) Quote Link to comment Share on other sites More sharing options...
whiteboikyle Posted April 24, 2009 Author Share Posted April 24, 2009 Thanks i appreciate this information 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.