My team just got a server (thanks to the CurcuitRunners and Sevaa.com) and I now have PHP and CGI capabilities. However, I have no experience with these, except the basic “Hello, world!” for PHP. Does anyone know of any good resources (preferably online) that have good tutorials for PHP and CGI? I am also interested in resources for PHP/MySQL interactivity, if that’s not too much of a problem.
Thanks in advance.
PHP: http://www.php.net (obviously)
http://www.hotscripts.com/ was another one I’d turn to a while back (for both PHP & Perl/CGI)
OK this site, has taught me A-Z if Web designing and web-programming http://www.w3schools.com/
www.php.net/tut is a great basic starting place. http://dev.mysql.com/tech-resources/articles/ddws/ appears to be a good resource (the one on hotwired/lycos is pretty out of date). http://dev.mysql.com/doc/mysql/en/Tutorial.html is the tutorial in the AWESOME mysql documentation. (I absolutely love mysql’s manual… it’s so complete!) Those are great basic starting points. Anything beyond that should be pretty simple to pick up provided you hold those documents close to your heart
There is some documentation… but this is mostly just a really good center for scripts/scriptlets (which become VERY useful for examining when your trying to figure out how the heck to do something on your own once you start making your own little scripts, working with other peoples scripts and manipulating them is a great way to start learning how to make your own scripts without head diving in and starting with nothing)
http://cgi.resourceindex.com/
http://php.resourceindex.com/
Good point, but that’s also an excellent way to pick up bad habits If you do try and learn by looking at other peoples code, try to look at how different coders do the same thing. Some people may do it poorly, insecurely, or inefficiently… while another coder could do it in a single function the first didn’t even know about.
I know you said online, but a good book as a reference/not quite beginner tutorial is “Programming PHP”, published by O’Riley.