Free PHP Code

Free PHP Code

Over the years, I’ve written and collected many different PHP scripts and chunks of code that are useful in their own, little way. Sometimes, they’re useful in a big way. A good example of what i’m talking about here are the tutorials and articles that I copied from “Sams Teach Yourself PHP in 24 Hours”. I found that info to be so useful, that I typed out the tutorials verbatim (or at least… very close!) in hopes that the experience would help me catch on a bit faster. It did work, and I understand the practicality of OOP programming in PHP and the reasons it’s a “standard”. I also have these articles (copied from a hard copy book which I purchased) online so I always have a reference to the OOP basics. It’s all about practicality, here.

In order to write practical object oriented PHP code, you should first have a thorough understanding on how Arrays and Functions work. It just so happens the tutorials I have here go over them to help a person along the right path.

There is also code for a Calendar script that was in the same book as the articles and tutorials mentioned above. Though, the calendar was written for register_globals to be ON, I made a slight modification and fixed that “problem”. I even show how it can be used as a blog type calendar, a lot like the one on the right hand side of this page!

That’s not all, there is also a decent beginning to a shopping cart script that I found in a book that I bought from sitepoint.com by Kevin Yank as well as an upload script that I wrote, some GD examples, PHP_CLI scripts that I wrote and found.

The coolest chunk of code there (that I think is the coolest, anyway) is the database abstraction code. I actually use that code to manipulate SQL databases in a couple of scripts that i’m currently writing (INCLUDING a NEWER version of TagIt! Tagboard. I wouldn’t expect that for a few months though). Anway, have fun and be careful! It’s a jungle out there!

Leave a Reply