Archive for July, 2006
PHP Developer - July 31st, 2006
DevShed wraps up its look at the Observer pattern in PHP with this last part of the series - centralizing the data validation of your PHP5 application using the Observer pattern.
Well, over the course of this last tutorial, I’ll be moving the application of observer objects toward the real world, in this case by showing you how to include these objects within a set of form-validation classes. After reading this article, you should be equipped with a decent knowledge of how a form checking application can use the powerful features of this widely-known design pattern.
They look back first at the code for the form validation class from the previous article before moving on and building in more functionality - a FormObserver class. Finally, they pair the two classes to make a working, validating example.
Continue Reading ·
PHP Developer - July 31st, 2006
Scott Mattocks has posted a mini news update on the world of PHP-GTK today on his blog:
Even though PHP-GTK News is still on hiatus, there are somethings that can’t wait.
He congratulates Anant Narayanan on his cover story in the latest issue of php|architect - “Application Development with PHP-GTK 2″. He also mentions the International PHP Conference and a speaker presenting there, Steph Fox, and her talk “Matruing Nicely - PHP-GTK 2″ (covering the latest PHP-GTK 2 improvements).
Continue Reading ·
PHP Developer - July 31st, 2006
Jacob Santos is back again today with this new blog post - his look at the world of PHP compilers and some of his theories (and rants) on the subject.
I know very little of compiler and interpreter theory and have never (yet) created a working implementation of a compiler or interpreter. What you’re about to read or (most likely) skip over is a Head-in-Ass post and feel free to flame me on parts where I’m wrong, which will be most places. Do realize that this is one end user’s opinion of the matter and any perceived insult upon any author(s) is not intended and please do not take it as such.
Jacob talks about run-time classes, class optimization, what he “really wants” out of a compiler, namespace functionality, a “phpc” extension, and his opinions on the Zend Engine, other web technologies, and the future of PHP.
Continue Reading ·
PHP Developer - July 31st, 2006
WeberDev.com has posted part three of their “User Authentication With patUser” series today, detailing some of the aditional functionality the patUser package has to offer.
While the API for user and group management does form the core of the patUser library, it’s not all there is on display. patUser also includes a number of utility functions that can come in handy for certain specialized tasks.
These functions include identifying users and groups by different criteria (such as name or email address); keeping track of the URLs visited by the user so as to generate a user trail; maintaining user account statistics for auditing purposes; and providing exception-handling routines for more graceful error handling.
They give the details on how to:
- make exceptions,
- track the user’s history through the site,
- perform a natural selection search on user data,
- how to identify users,
- record stats about the user’s activities
With this tutorial they finish off the series, providing a good solid overview of the patUser package. If you’re just now reading the series, be sure to check out part one and part two.
Continue Reading ·
PHP Developer - July 31st, 2006
On HowToForge today, there’s a new tutorial for those working with an up and coming version of linux, gaining more and more popularity all the time - Ubuntu. The tutorial details how to get a solid LAMP installation up and working on such a machine.
I, like many others, made the decision to attempt an install of Ubuntu 6.06 server with the preconfigured LAMP option without having ever attempted using Linux before. My goal was to build a setup that I could host my personal web site from. Embarking on this journey I had no idea how much knowledge I lacked and in turn would learn in my quest to host.
Hence, I am writing this as a partial documentation of my trials and tribulations with hopes of aiding all Linux noobs on the steps necessary to create a basic Linux, Apache2, MySQL5 and PHP5 system with FTP. Again, this document is tailored to complete Linux beginners and is in no way a complete guide to attacking such a setup. It will get you up and running but will need security hardening like no other.
He starts from the very beginning (a very good place to start) with the installation of version 6.06 of the Ubuntu server, including the LAMP option. With things installed, he shows how to get to a GUI environment and get to the configuration screen of the local Webmin installation (after installing it). Setup is as simple as a few clicks and form fields away, making customizing your server a breeze.
Continue Reading ·