wepnop Posted February 21, 2011 Share Posted February 21, 2011 Thats my question. Its a good practice? Gives error in a php file without html, for example? About the library, i have a 1500lines single php file and i modualritizing it. There is any advice in general when creating a php library? Quote Link to comment https://forums.phpfreaks.com/topic/228409-always-write-and-creating-library/ Share on other sites More sharing options...
kenrbnsn Posted February 21, 2011 Share Posted February 21, 2011 What is your question? It's not clear what you're asking. Ken Quote Link to comment https://forums.phpfreaks.com/topic/228409-always-write-and-creating-library/#findComment-1177769 Share on other sites More sharing options...
wepnop Posted February 22, 2011 Author Share Posted February 22, 2011 What is your question? It's not clear what you're asking. Ken I want to know if the <?php ?> separating the code is needed in a plain php file without html and if its good practice to skip it. Quote Link to comment https://forums.phpfreaks.com/topic/228409-always-write-and-creating-library/#findComment-1178086 Share on other sites More sharing options...
trq Posted February 22, 2011 Share Posted February 22, 2011 You can't skip the opening <?php tag. PHP needs it to execute. The closing tag can and should be left out of a library/framework to help prevent white space being included. Quote Link to comment https://forums.phpfreaks.com/topic/228409-always-write-and-creating-library/#findComment-1178090 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.