 | News Feed |
Sections
Community Events
|
| feed this: |  |
Tiger Heron Blog: First steps with PHP - booting a script, Part 2
posted Monday April 28, 2008 @ 12:57:33
voice your opinion now!
BY CHRIS CORNUTT
Tony Freixas continues his introductory look at "booting" a PHP script with part two of his series (here's part one) looking at using libraries.
In the good old days, if you wanted to create re-usable code, you would create a library of related functions or objects. Now, the excitement is all around frameworks. Everyone has one. What is the difference between the two?
He compares a library and a framework, pointing out key differences like how they fit with the application (controlled by or controlling) and dependencies they require. He rounds out his boot sequence, adding a few new parts to the structure of his example application.
tagged with: series boot script introduction library framework
Andreas Gohr's Blog: Google Chart API via PHP
posted Wednesday April 16, 2008 @ 21:04:05
voice your opinion now!
BY CHRIS CORNUTT
On his blog, Andreas Gohr has posted about various charting applications on the web (in his search for a way to show off the stats for DokuWiki) and looking specifically at the Google Charts.
Because such [popularity] data is much better to comprehend when accompanied by some nice graphs, I had a look at the Google Chart API today.
He also mentions three wrapper libraries that help your apps interface with the Charts API. Of course, he also includes some graphs of the popularity stats showing things like web server usage and PHP versions.
tagged with: google chart api library interface statistics
Make Me Pulse Blog: PHP6, Unicode and TextIterator features
posted Friday March 14, 2008 @ 09:32:34
voice your opinion now!
BY CHRIS CORNUTT
On the Make Me Pulse blog, there's a look at PHP6's support of Unicode in the SPL (Standard PHP Library) TextIterator handler.
I've just install the last version of PHP6 dev and I've decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it's just my discoveries test on this features.
He steps through the process he followed - enabling Unicode support, testing various output methods (including just an echo and using the TextIterator) as well as some of the manipulation methods (next/first/current) that can be used to get certain characters out of a string.
tagged with: php6 unicode textiterator spl standard php library enable
Stefan Mischook's Blog: PEAR vs. Zend Framework
posted Friday March 14, 2008 @ 07:56:53
voice your opinion now!
BY CHRIS CORNUTT
On his blog today, Stefan Mischook compares two of the popular component libraries out there - PEAR and the Zend Framework (yes, it can be considered a grouping of components too).
Now that the Zend Framework is ready for 'prime time', I've been considering the Pear framework with regards to how it now fits in the PHP world.
He suggests that not could both be considered component libraries, but might also both be frameworks (based on a definition that a framework is a "consistent set of components that are designed to work together in a unified manner"). He also asks about the need for something like PEAR now that the Zend Framework has come along, getting Jonathan Lebensold's opinion too.
tagged with: pear zendframework compare need component framework library
Community News: Two Wrappers for Ext JS in PHP - PHP-Ext & ExtPHP
posted Wednesday March 12, 2008 @ 09:38:00
voice your opinion now!
BY CHRIS CORNUTT
As both the Zend Developer Zone and Ajaxian point out, there's been two new projects based on the Ext JS user interface widget system adapted for PHP - PHP-Ext and ExtPHP.
PHP-Ext is an open source widget library written for PHP 4 and 5 to empower the UI Layer. It is based on Ext JS javascript widgets which provide a standard and powerful API to build Rich Internet Applications. It basically works as a convenient wrapper for the Ext JS Javascript Objects.
And from the ExtPHP site:
I needed to be the one person who would have to wrestle JavaScript when problems happened. I therefore needed a way to insulate them from the gory details, which is why I created ExtPHP.
As you may have guessed from subtle hints, such as this entry's 12-feet tall header, ExtPHP creates a PHP wrapper for ExtJS.
The Ajaxian post also includes code examples for each of them, one showing form construction and the other a tabbed interface.
tagged with: phpext extphp extjs javascript wrapper library
Builder.com.au: Generating PDF Files with PHP and FPDF
posted Wednesday February 20, 2008 @ 08:42:00
voice your opinion now!
BY CHRIS CORNUTT
The Builder.com.au website has a new tutorial posted today that looks at the dynamic creation of a web standard (PDF files) inside of a PHP script.
An alternative way of generating PDF files with PHP is using FPDF, a free PHP class containing a number of functions for creating and manipulating PDFs. The key word here is free. You are free to download and use this class or customise it to fit your needs. In addition to being free, it's also simpler to use than PDFlib. The PDFlib needs to be installed as an extension in your PHP package, whereas FPDF can just be included in your PHP script and it's ready to use
They show how to use the FPDF library to make some simple files - setting the title, author, adding images and text, etc. There's even a little bit there at the end about adding new pages to make more complex documents simple.
tagged with: pdflib fpdf generate tutorial free library
C7Y: Step Away From the SuperGlobals! An Introduction to Inspekt
posted Tuesday February 19, 2008 @ 11:15:00
voice your opinion now!
BY CHRIS CORNUTT
As Ed Finkler points out there's a new article posted (written by him) on the C7Y site (from php|architect) talking about his Inspekt library - an introduction to the filtering library showing how to help make your applications safer.
Inspekt is a library for PHP4 and PHP5 that aims to make safe input handing easier, and unsafe actions more difficult. Inspekt establishes a new development approach by wrapping input within "cage" objects, and requiring the developer to use validation and filtering methods to test and manipulate the input data. This article provides a brief introduction to Inspekt and its capabilities.
The article covers all of the basics - what the library can do for you, how it integrates into your application and how it helps to protect you from potential problems with the data in your superglobals ($_GET, $_POST, $_REQUEST, etc).
tagged with: inspekt tutorial superglobal library security superglobal
|