March 17th, 2005, 03:49 AM
CGI Design Process
Does anyone know if there is a recommended design process to building CGI (e.g PHP) scripts ?
March 17th, 2005, 04:29 AM
Are you trying to build your own search engine? Or...can you clarify what you are trying to do?
March 17th, 2005, 04:36 AM
I'm just interesting in learning and building a few simple php systems at the moment (e.g guestbook, simple forum) and i was wondering if their is any documented way to help design such scripts. At the upper level, sort of like UML is used in OO design.
March 17th, 2005, 04:53 AM
create a guestbook - flash, php & mysql
create a guestbook
Andrew Kendall - PHP Guestbook Tutorial
WebThang Tutorials:Build a Guest Book with UltraDev: by Mike Fear
The Code Project - Free Source Code and Tutorials
March 17th, 2005, 04:54 AM
Definitely try and do it modularly. Most things you will be doing in a forum or something you can reuse. So make a class for anything that you think might be useful for other stuff so that you can reuse it. For example you'll probably want to make an input sanitization class to make sure the users aren't trying to do any sql injection or xss. As for actual ways of coding, I'm not really sure, code however you want. I don't really go by any standard, I just go by how I think to do things. That may be bad, but it works for me. I think what I was saying about separating things into modules will be one of the better things you can try and do. Also, look at examples. That helps a lot too. Good luck. It's always nice to see people building their own things.
March 17th, 2005, 05:08 AM
Thanks alot for all of your replies
March 17th, 2005, 05:14 AM
Yeah another good link for free php scripts is, www.phpbb.com . My friend used one for his website and the forum looks really really good, with all kinds of options.