php programming practices
Hi all!
I have created my own content management system from scratch pretty much and I really need to clean the code up and organize it better because there is so much php code everywhere but I don't really know good practices of php programming because I taught myself. Do I initialize all the session variables that I need all at once or do I make individual queries to sql? Also should I initialize these right after session_start() or should I do some checks first? If anyone has any other securing or coding tips for a budding young php programmer that would be appreciated.
Thanks!