Andrew Wulf passed along a note about an ajax-based PHP documentation site aimed at making it simple to get at the PHP manual from a single page interface.
I wrote this little app for my own needs initially, as PHP is such a big monster that it was hard to find the right documentation, or discover which of the N similar packages I should use. When I moved servers I fixed up the app enough and decided to release it to the world. It's pretty handy as is, but there are still several things I need to add, particularly paging through the documentation, and supporting bookmarks.
The site, phpdox.net, supports two kinds of searches - one through an index of page titles and another through the hierarchical names of the documentation's filenames.
Asvin Balloo has posted a tutorial that shows how to combine the YUI libraries with PHP to create a simple image cropper.
This post will show you how to build an AJAX crop image tool using the image cropper control from YUI library and PHP. The ImageCropper Control from the YUI library gives you an interactive interface for getting the dimensions to crop an image and using these dimensions in PHP, we can do some cropping.
The script takes in an upload, shows it in the browser for cropping and once altered, pushes the altered image back out as a download. Full code is included as well as a demo of the final result and a sample file to get you started.
The Midstride Solutions blog has posted five tips and tools that can help to make you a better developer (and possibly make you a faster one).
In this post, I will discuss 5 tips and tools that the php community has provided to speed up development time and improve code quality. These should help you out if you don't already know them, but if you do I would like to hear what you use to speed up your development time.
Their five tips/tools are:
Framework with the Model View Controller (MVC)
AJAX Frameworks
Integrated Development Environment (IDE)
Database Creation/Management Software
Object Relational Mapping (ORM)
Included for each is his personal preference and recommendation.
Zend has issued a press release about a new series of online training classes they will be offering.
Zend Technologies, The PHP Company, continues its series of free online seminars started in early 2007.The so-called "Webinars" are aimed at anyone interested in PHP - web developers, consultants, project managers and technical decision makers. Topics include PHP as well as specific solutions and the tools Zend offers for enterprise-use of this programming language.
You can get more information on the events from the Zend website but here's a few to give you an idea: "Zend Cargo and Present: Using PHP to Build a Mobile Internet Platform", "Get Rich Quick: Building Ajax-based RIAS with Zend Framework and Appcelerator" and "i5 - Application Lifecycle Management for the Enterprise".
All of the webinars are free and, if you miss a session and you want to catch up, you can always download it from their archive.
In this new post to the PHPInfo site, Brian Fioca takes a look at the WASP framework and how it can help you develop your applications quickly.
In this article I will demonstrate the power and simplicity of developing PHP applications using the WASP Framework through the illustration of a simple user module design pattern. The example code will encompass the creation of a user account and subsequent login validation. In the course of this discussion, we will cover the creation of the three tiers of the application- model, view, and controller-and introduce a simple approach to using AJAX to save application form data and present flexible user interfaces.
The provides the code and database structure to make the application work, including the "touch of Ajax" made using the Prototype Javascript library.
The IBM developerWorks website has a new tutorial for those looking to get into the powerful combination of Ajax and PHP - an introduction to creating Ajax-based websites with PHP.
Learn the process of writing Asynchronous JavaScript + XML (Ajax) applications using native JavaScript code and PHP. This article introduces a few different frameworks and application program interfaces (APIs) that reduce the amount of code you need to write to achieve a complete Ajax-based Web application.
They (briefly) explain what Ajax is and the benefits of it before jumping right in to a sample page. They go for the "manual first" approach so developers know to make basic connections with the XMLHttpRequest object and handle the responses. They do mention some of the libraries offered that help with the connections too (like jQuery, Prototype and Dojo).
In a new post to the ThinkPHP blog today there's a look at combining Comet with PHP to make a simple method for the client to talk back to the server outside the usual methods.
If a couple of users have opened the application there are already some hundred or thousand requests per second. The outcome of this is a big load for your server and a highly increased traffic - your server will in a senseless way be overloaded. In conclusion, our problem is the enormous amount of polling without knowing whether the server really wants to send a new push. Let's turn the initial situation around. And we get the solution to our problem: Comet.
With Coment, the model changes and the request is "cached" on the server-side automatically in a single Comet instance. Coordinate this with another recommendation of theirs, a PHP socket server, and you can do some pretty interesting things.
Michael Girouard has a new post (complete with slides about the PHP and Ajax presentation he gave at a recent New York PHP user group meeting, "Ajax for PHP Developers".
It felt a little strange presenting a JavaScript topic to a bunch of PHP developers, but I made it come back to PHP by demonstrating a the latest Panda PHP package which is only in incubation at the moment.
Andy Frey dropped us a line to tell us about a method he's come up with to make a remoting interface between Javascript and PHP5.
This is a demonstration of a very fast and easy way to build AJAX-type applications where communications between JavaScript on the client side and PHP5 on the server side is ideal. This library makes development of such systems fast and very simple.
In his example he shows how to create the PHP and Javascript functions that let the service talk back and forth. He defines a simple "Hello World" style application to show how it would be structured. He also includes a bit of more complex that has other functionality - getting a value out of an array and returning a property/private variable from the backend class.
Jake Blauzier has just posted the last part of his series focusing on the creation of an event-based Ajax framework that works with PHP. It allows for calls to static functions, can return Javascript representations of PHP objects and a "call queue" system to keep things from overlapping.