Zie Posted September 2, 2008 Share Posted September 2, 2008 Is it necessary to use classes for scripts people will be accessing by a website? I am making something where people will be able to post information (like a mini-forums I guess you could say). I have never used classes, but I see a lot of forums and other php scripts (like stats script for games, scripts for blogs like wordpress, etc) use classes. Only reason I can think of them using classes is for efficiency? I was also thinking that maybe the page wouldn't be dynamic for every user (like, for my script, many people are logged in). So like would variables in my script be messed up if many people were using the site at one time without my script being composed of classes? Link to comment Share on other sites More sharing options...
jlhaslip Posted September 2, 2008 Share Posted September 2, 2008 No. Procedural code will work. OOP / classes might be faster / better, but normal coding will also be effective. Link to comment Share on other sites More sharing options...
Zie Posted September 2, 2008 Author Share Posted September 2, 2008 Wow, talk about a fast reply! Thanks a lot, just the answer I was hoping for! I think I'll just finish coding the rest of it and maybe try and recode it in OOP later. Once again, thanks, really appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.