Archive for August 8th, 2006

Scott Johnson’s Blog: Podcast : PHP Theory 1

Scott Johnson has created and posted another in his podcast series today, this time, he looks not at the development side of PHP - the actual code - but at the theory behind its development and best practices.

At the request of a listener to past podcasts, Scott created this one to share some of his experiences and findings along the path of his develoopment. Some of the items covered in the podcast include:

  • package and library management
  • naming conventions
  • the seperation of UI and business logic
  • code distribution
  • using test harnesses

You can download the MP3 of the podcast directly from here.

Continue Reading · 1 comment

php|architect: Stored Procedure Programming for MySQL5 (Part 2)

The A/R/T article repository (from php|architect) has posted the second part of their series covering stored procedure programming in MySQL by Ligaya Turmelle.

Now that we become familiar with the fundamentals of stored procedures it is time to start playing with the “Big Boy Toys”. This article will go over stored procedures’s built in error handling, the security features available, various “extras” available, what isn’t allowed in a stored procedure, and some basic administration of the stored procedures. So lets stop talking and bust open the toy box and start playing!

Since they’ve already gotten the groundwork laid in the previous article, they jump right into the transactions in this part. In this example, they create a “mass insert”, show hoe to create some error handling, add in a dash of security, and toss in a few extras. There’s also a few small gotchas included to watch out for.

Continue Reading · Add comment

Imulus.com: CakePHP and PRADO

On Imulus.com, there’s brief look at two of the PHP frameworks available these days - CakePHP and PRADO.

I’ve recently found two open-source PHP development frameworks with great potential: CakePHP and PRADO.

He talks about the two of them, describing what they are and what the goals of the projects are. He hasn’t tried them to compare them yet, but keep an eye out for future posts with more information.

Continue Reading · Add comment

Classes as PHP Functions

A class is a function of PHP that has its roots in object oriented programming. The ability to use classes in PHP has been increasing with later versions. If you want to add the power of classes to your PHP programming keep reading….

(Advertisement) Rackspace-Managed Servers, Fanatical Support™ Full-Scale Microsoft & Linux Solutions & 0% Network Downtime! Click here now!

Continue Reading · Add comment

Joshua Eichorn’s Blog: Adding AJAX to a website step by step

Joshua Eichorn has posted this new tutorial to his site today, a detailed look at how to add Ajax to just about any site out there with the help of the HTML_AJAX PEAR package.

When looking at a adding AJAX you have a couple decisions you’ll want to make up front. One is what tools your going to use. In the webthumb case thats pretty easy. Webthumb is a simple PHP app and doesn’t use a framework, so I need a nice general PHP/AJAX framework that is easy to use, HTML_AJAX fits that need.

After picking my tools I need to decide what my goals are. My main focus will be to improve usability, but I also want to use AJAX to make the site seem a bit flashier, so its a bit of a technology demo too.

He uses his own current project, Webthumb as an illustration of his points including looks at remoting, a RequestStatus class, exporting a class with the HTML_AJAX package, and finally, making the Ajax calls.

Continue Reading · Add comment