PHP generally runs on a web server, taking PHP code as its input and creating Web pages as output, however it can also be used for command-line scripting and client-side GUI applications. PHP can be deployed on most web servers and on almost every OS platform free of charge. The PHP Group also provides the complete source code for users to build, customize and extend for their own use.
Server-side scripting:
Originally designed to create dynamic web pages, PHP's principal focus is server-side scripting. While running the PHP parser with a web server and web browser, the PHP model can be compared to other server-side scripting languages such as Microsoft's ASP.NET system, Sun Microsystems' JavaServer Pages, mod_perl and the Ruby on Rails framework, as they all provide dynamic content to the client from a web server. To more directly compete with the "framework" approach taken by these systems, Zend is working on the Zend Framework - an emerging (as of June 2006) set of PHP building blocks and best practices; other PHP frameworks along the same lines include CakePHP, PRADO and Symfony.
The LAMP architecture has become popular in the Web industry as a way of deploying inexpensive, reliable, scalable, secure web applications. PHP is commonly used as the P in this bundle alongside Linux, Apache and MySQL. PHP can be used with a large number of relational database management systems, runs on all of the most popular web servers and is available for many different operating systems. This flexibility means that PHP has a wide installation base across the Internet; over 19 million Internet domains are currently hosted on servers with PHP installed.
Command-line scripting:
PHP also provides a command line interface SAPI for developing shell and desktop applications, daemons, log parsing, or other system administration tasks. PHP is increasingly used on the command line for tasks that have traditionally been the domain of Perl, Python, awk, or shell scripting.
Client-side GUI applications:
PHP provides bindings to GUI libraries such as GTK+ (with PHP-GTK), Qt (with PHP-Qt) and text mode libraries like ncurses in order to facilitate development of a broader range of cross-platform GUI applications.
PHP primarily acts as a filter. The PHP program takes input from a file or stream containing text and special PHP instructions and outputs another stream of data for display. From PHP 4, the PHP parser compiles input to produce byte code for processing by the Zend Engine, giving improved performance over its interpreter predecessor. The Zend Engine II is at the heart of PHP 5.
PHP events are ramping up in Vancouver, BC. This includes a new meet-up group, workshops, and more… If you are nearby, join in the fun, and Let’s PUMP UP THE PHP VOLUME in BC!
Ok, ZendCon is over and I’m back to surfing for things you will find interesting. Two articles posted that I didn’t cover but feel they are content rich enough to mention are “Create a productivity package with the Zend Framework V1.5 and Google Apps” and “How We Built a Web Hosting Infrastructure on EC2”. Click on in and I’ll give you details and links.