Archive for August 14th, 2006

Ilia Alshanetsky’s Blog: PHP 5.2 will feature libSQlite 3.3.7

Ilia Alshanetsky has a very quick note today about the inclusion of libSQlite version 3.3.7 in the upcoming PHP 5.2 release.

I’ve just completed the upgraded of the bundled libsqlite in pdo driver from a fairly antiquated 3.2.8 to the latest 3.3.7.

Yet, another reason to upgrade to 5.2.0 when it comes out.

For more information on using PDO and the status of it, check out the PHP manual page for it, specifically this page for more on the SQLite drivers.

Continue Reading · Add comment

PHPit.net: Image manipulation with PHP & the GD library (Part 2)

New on PHPit.net today is part two of their series covering working with images in PHP through the GD graphics library.

In this second part of the “Image manipulation with PHP & the GD library” article series you will learn how to resize images, create thumbnails, watermark images and more.

They start with resizing images, showing how to grab the current size and alter it to modify the output (both in a set and proportional way). With that code in place, they take the next logical step - an automatic thumbnail creator from a file upload. Finally, they show how to help protect your images using a watermark - their example is a “Image by YourWebsite.com” string of text placed on the image.

Continue Reading · Add comment

DevShed: Building a Web Page Controller for Simulating the Model-View-Controller Schema in PHP

DevShed continues their look at the Model-View-Controller schema in PHP with this new part in the series, part two detailing the creation of the first part of the setup - the controller.

The next step on this journey consists of implementing the MVC schema in the context of a real-world application. We’re going to build a web page controller system, which will be capable of creating different style sheets on the fly. In this way it will generate several views from the same model, that is the web document in question.

They walk through their example, creating their PageController to handle generating pages of different styles, a page generator class to use the controller, making a style sheet generator class, and putting them all together to create a working MVC schema.

Continue Reading · Add comment

Building a Web Page Controller for Simulating the Model-View-Controller Schema in PHP

If you re one of those PHP developers that want to extend your background in object-based applications then this series might be quite attractive to you. In these three tutorials of which this is the second you ll learn how to simulate a simple Model-View-Controller schema which can be easily expanded to construct more complex relationships between the different entities in this case applicable specifically to PHP classes….

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

Continue Reading · Add comment

Community News: Userland Naming Guide Launched

An official guide to choosing names for identifiers in userland has been added to the PHP manual on PHP.net. In his latest post, Lukas Smith talks about it:

So now we finally have some guidelines on how users should name their identifiers to be fairly future proof. This should hopefully help reduce the amount of pain people suffer when PHP adds new features like a class for Date or File handling. Although the two mentioned examples have settled on using DateTime and FileObject to get around the issue at least partially.

The guide itself is unfortunately spread over 3 pages, which does not seem to make sense since there is really not that much content there yet. Then again the guide may get expanded in the future. Anyways I recommend that every serious PHP programmer have a look at the guide. If there are any issues please let me (or the PHPDoc team) know. Otherwise make sure you adapt your internal CS to match this guide.

The guide talks about the naming of items in the global namespace (functions, classes, interfaces, etC), some rules to follow for internal identifiers, and some quick tips on naming to create pseudo-namespaces.

Continue Reading · Add comment