PHP DevCenter
oreilly.comSafari Books Online.Conferences.

advertisement





  

Developing Web Services Using PHP
Developing web services using PHP

  

Code As Data: Reflection in PHP
Code as data: Reflection in PHP

  

PHP Search Engine Showdown
Fuel your engine with PHP

  

Building Photo Uploaders with XAML  Who says Windows can't play nice with open source applications? Jack Herrington uses the XAML technology on Windows Vista to create a visually appealing and user-friendly image uploading application for getting pictures into a PHP web application.   [Windows]

Managing Sessions and State with PHP  HTTP is stateless. If you've ever written a web application where user data matters, you know that managing that data can be troublesome. There are two kinds of data, though: page and session data. Understanding the differences can help you develop better and more easily. Brian Fioca explains.   [PHP]

Autofilled PHP Forms  PHP makes handling interactive web pages easy--but when you have large forms to fill out, errors to handle, and lots of data to pass back and forth, you can make your life easier by making PHP fill in all the form values for you. Gavin Andresen shows how to make forms autopopulate from PHP arrays.   [PHP]

Implementing MVC in PHP: The Model  The most popular "proper" way to build a web application seems to be to use the Model-View-Controller design pattern. While it sounds complex, the concepts are sound and the ease of development it provides are compelling. Joe Stump shows how the Model works by developing a working version in PHP 5.   [O'Reilly Network]

Simplify PHP Development with WASP  Where are the all-in-one PHP frameworks that make building well-factored and maintainable applications as easy as building simple sites? Brian Fioca shows how to make a simple database-backed site with WASP in just a few lines of code.   [PHP]

Improve Your Build Process with Ant  Building and bundling web applications hasn't exactly grown easier over the years. This is especially true if you customize your projects for different clients. Don't go crazy with manual solutions--automate them. Michael Kimsal shows how the Ant build tool can make building, bundling, and deploying PHP applications much easier.   [PHP]

Implementing MVC in PHP: The View  The most popular "proper" way to build a web application seems to be to use the Model-View-Controller design pattern. While it sounds complex, the concepts are sound and the ease of development it provides are compelling. Joe Stump shows how the View works by developing a working version in PHP 5.   [PHP]

Testing PHP Code with PHPUnit  Type; reload web site; eyeball output; fix bugs; repeat--there's a better way to write PHP code! Testing gives you confidence not only that your code works, but also that you can make changes to improve your design and flexibility without breaking behavior. Sebastian Bergmann, the author of PHPUnit, shows how his library can help to ease your development woes.   [PHP]

PHP Code Generation with Elisp  There's plenty of near-repetition in software development; writing very similar code over and over again. Stop copying, pasting, and modifying, and start automating the process! Zachary Kessin shows how to use Emacs Lisp to generate useful and reusable database-access code for PHP.   [PHP]

Implementing MVC in PHP: The Controller  The most popular "proper" way to build a web application seems to be to use the Model-View-Controller design pattern. While it sounds complex, the concepts are sound and the ease of development it provides are compelling. Joe Stump shows how the Controller part of MVC works by developing a working version in PHP 5.   [PHP]

The Practicality of OO PHP  PHP is an easy language for doing practical things immediately. The easiest ways to begin aren't always the best ways to stay productive, though. PHP's support for object orientation requires a little more learning and a little more discipline, but it has many benefits for larger projects. David Day explains the basics of OO in PHP 4.   [ONLamp.com]

Understanding MVC in PHP  The most popular "proper" way to build a web application seems to be to use the Model-View-Controller design pattern. While it sounds complex, the concepts are sound and the ease of development it provides are compelling. Joe Stump shows how MVC can work in PHP by walking through working, example code.   [PHP]

Object Overloading in PHP 5  PHP 5 has greatly improved object-oriented programming support. It also has new hooks to overload methods and properties. How can you do this? Why would you want to? Martin Jansen demonstrates method and property overloading with PHP 5 objects.   [ONLamp.com]

Securing Web Forms with PEAR's Text_CAPTCHA  On the internet, how can you tell a person from a program written to act just like a person? One approach is to ask a question that (usually) only a human could answer. Marcus Whitney shows off a PEAR package to do this easily from PHP.   [ONLamp.com]

Important Notice for PHP DevCenter Readers About O'Reilly RSS and Atom Feeds  O'Reilly Media, Inc. is rolling out a new syndication mechanism that provides greater control over the content we publish online. Here's information to help you update your existing RSS and Atom feeds to O'Reilly content.  [PHP DevCenter]

Calculating Entropy for Data Miners  Quick--what's the relationship between the columns of your database? Don't know? Maybe it's time to pull out the information theory book and calculate how much data they store. Paul Meagher explains how this works while showing off premade PHP libraries to handle the details of the calculations for you.   [ONLamp.com]

Programming eBay Web Services with PHP 5 and Services_Ebay  PHP 5 added several new features to the language, yet laundry lists and high-level overviews don't really show what they are or why you might use them. Fortunately, Adam Trachtenberg writes for us. Here's how to use the new features of PHP 5 for writing web services clients.   [ONLamp.com]

Calculating Entropy for Data Mining  Eww, statistics. Right? Not necessarily--for example, calculating the entropy of your web statistics can help you analyze trends and correlations. Paul Meagher demonstrates statistical programming in PHP while explaining single-variable entropy.   [ONLamp.com]

Three-Tier Development with PHP 5  Well-factored applications separate data storage, manipulation, and display. For PHP programmers, PHP 5 and PEAR make that easier than ever. Luis Yordano Cruz demonstrates how to combine PEAR::DB_DataObject, Smarty, and PHP 5 to improve the design and maintenance of your applications.   [ONLamp.com]

Writing "Learning PHP 5"  Developers often write open source software in public, but what about developers who write about open source software? Do they build tools? How do your favorite books come about? David Sklar explains how he wrote Learning PHP 5.   [ONLamp.com]

Allowing Registration-Required Binary Downloads  You have a great PDF, MP3, or binary file to distribute, but you want to know who's downloading it. How hard could it be to write a little PHP program to require registration before letting your goodies loose? Robert Bernier demonstrates that it's actually pretty easy.   [ONLamp.com]



PHP Cookbook 
Recipe of the Day
Do it now.

O'Reilly Network Blogs

Deployment is Colonization For years, many people have argued that one of PHP's big successes is deployment. The language has little to recommend it for anything beyond simple database-backed HTML templating, but there's little easier than dropping a couple of .php files in… read more chromatic


PHP Stats for Q4 2007 Damien Seguy just sent me more stats on the versions of PHP in the wild. From their analysis of PHP Statistics for November 2007: PHP 5 still vigourous, up to 26% PHP 4.4.7 is the last growing PHP 4 version PHP 5.2… read more chromatic


PHP Quebec 2008 Call For Speakers From Damien Seguy: PHP Quebec is pleased to announce the sixth edition of the PHP Quebec Conference. The Conference will take place in Montreal, Canada between March 12th and 14th, 2008. We are looking for speakers willing to share their expertise with… read more chromatic


Open Source vs. Proprietary -- Category Perspective One of the dimensions we observe at O'Reilly is the "supplier" category.... The following chart is a fairly good view of the "platform" world for the first five months of each year [January thru May of 2003 - 2007]. Mike Hendrickson


PHP Adoption Statistics for March 2007 Damien Seguy just sent me links to Nexen's PHP Adoption Statistics for March 2007 (also an analysis of the PHP adoption statistics for March 2007). Buried in the data is one little gem: if you want to run on the… read more chromatic


Plat_Forms is On! The Plat_Forms web publishing contest has just started. Alvar Freude let me know that the nine Plat_Forms teams represent Java, Perl, and PHP. Oddly, there are no .Net, Python, or Ruby entrants. The Plat_Forms live contest blog is also available;… read more chromatic


Troubling News for PHP? Recently I was pointed to a blog entry announcing the retirement of Stefan Esser from the PHP Security Response Team. Stefan, amongst other things, developed Suhosin, a PHP security tool. His retirement announcement was extremely disturbing and is worth reading. Curtis Poe


More ONLamp Posts



Sponsored by: