OSCON 2006: Gettting Rich with PHP5

This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR.

PHP’s creator, Rasmus Lerdorf, gave a surprising talk on building PHP rich web applications using PHP5—suprising, because fully half the talk focused on low-level PHP optimization techniques. The slides are available online.

Taking a simple PHP script as an example, he set out to optimize it to meet a request throughput requirement of 1700 requests/second (as measured by http_load). Techniques he touched on along the way included using KCachegrind to analyze the Apache process running your script, in order to determine what parts of PHP are actually causing the slow-down in your script.

Some examples of bottlenecks he identified and fixed included a default PostgreSQL setting that uses secure SSL connections (with significant overhead) and PostgreSQL database connections, which are much slower than connecting to MySQL. He also showed how to further improve performance by caching PHP intermediate code and automatically optimizing that code using the various features of Alternative PHP Cache, a project that Lerdorf is actively working on right now.

Lerdorf then spent some time looking at new features of PHP 5.0 and 5.1 that make building Web 2.0 applications easier, including the libxml-based XML handling functions, SimpleXML, and the object oriented SOAP library, but these are things with which most serious PHP developers will already be familiar.

A few of his demos showed off PHP parsing various feeds and producing interesting user interfaces using the YUI Library, and he capped off the talk with a few Google Maps and Yahoo! Maps mashups powered by simple PHP scripts. Interesting in these demos were those that directly called the Yahoo! Maps API to pull map tiles for particular locations directly on the server-side (rather than loading up a full DHTML user interface on the client side).

Replay

Category: programming Time: 2006-07-28 Views: 0
Tags:

Related post

  • OSCON 2006: Django: Web Development with Journalists' Deadlines 2006-07-27

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Lead developer Jacob Kaplan-Moss bills Django as a competitor to Ruby on Rails. Django is a web development framework that was born at a small community newspaper in the city of Lawr

  • OSCON 2006: Rock-solid Web Development: Testing Web Apps 2006-07-26

    All this week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Presenter John Paul Ashenfelter provided the standard sales pitch for testing, but with a web development spin, and demonstrated both Selenium (a rich, in-browser testing framewo

  • OSCON 2006: Cross-site Ajax 2006-07-28

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Paralyzed by indecision (at any given time at OSCON, there are literally three different sessions I would consider "must-see" going on), I went to Plaxo developer Joseph Smarr's

  • OSCON 2006: Understanding ZFramework 2006-07-28

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. John Coggeshall is a respected name in the PHP world, and works as a technical consultant for Zend, and provided a fast-paced introduction to the Zend Framework as it currently exist

  • OSCON 2006: Tim O'Reilly keynote 2006-07-27

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Kicking off the first day of open sessions at OSCON today, Tim O'Reilly gave his perspectives on the state of open source, and some of the big ideas currently making waves: Architect

  • OSCON 2006: Ajax Optimization Techniques 2006-07-27

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Kevin Henrikson of Zimbra gave a brisk presentation covering some of the lessons his organization has learned and the "dirty tricks" it has implemented to improve the performanc

  • OSCON 2006: Web Heresies: The Seaside Framework 2006-07-28

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Avi Bryant has the dubious distinction of being one of the few web geeks with an avid interest in Smalltalk, and has created a web application development framework that suits his pa

  • OSCON 2006: Cosmo and Scooby: Standards-Based Open Source Calendaring 2006-07-29

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. Developed by the Open Source Applications Foundation (OSAF), Cosmo is a service enabling its users to put their personal information online and share it with others via open protocol

  • OSCON 2006: Practical OpenID 2006-07-29

    This week, Kevin Yank is reporting from OSCON 2006 in Portland, OR. David Recordon (Six Apart, then Verisign) and Brian Ellin (JanRain) have had their fingers in OpenID since its inception. OpenID is an open user authentication system based on the pr

  • Installing Nginx With PHP5 And MySQL Support On Debian Etch 2012-01-14

    There is a new revision of this tutorial available for Debian 6 (Squeeze). Installing Nginx With PHP5 And MySQL Support On Debian Etch Version 1.0 Author: Falko Timme Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP se

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 12.1 2012-02-09

    There is a new revision of this tutorial available for openSUSE 12.2. Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 12.1 Version 1.0 Author: Falko Timme Follow me on Twitter Nginx (pronounced "engine x") is a free, open-

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Debian Wheezy 2012-03-01

    There is a new revision of this tutorial available for Debian 6 (Squeeze). Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low reso

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 14 2012-04-19

    There is a new revision of this tutorial available for Fedora 19. Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 14 Version 1.0 Author: Falko Timme Follow me on Twitter Nginx (pronounced "engine x") is a free, open-source,

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Ubuntu 14.04 LTS 2012-08-17

    There is a new revision of this tutorial available for Ubuntu 15.10 (Wily Werewolf). Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, an

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 11.04 2012-08-18

    There is a new revision of this tutorial available for Ubuntu 15.10 (Wily Werewolf). Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 11.04 Version 1.0 Author: Falko Timme Follow me on Twitter Nginx (pronounced "engine x") is

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On CentOS 6.0 2012-09-06

    There is a new revision of this tutorial available for CentOS 7. Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On CentOS 6.0 Version 1.0 Author: Falko Timme Follow me on Twitter Nginx (pronounced "engine x") is a free, open-source,

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 11.4 2012-09-15

    There is a new revision of this tutorial available for openSUSE 12.2. Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 11.4 Version 1.0 Author: Falko Timme Follow me on Twitter Nginx (pronounced "engine x") is a free, open-

  • Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 12.2 2012-09-16

    Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 12.2 Version 1.0 Author: Falko Timme Follow me on Twitter Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability

  • Running Apache2 With PHP5 And PHP4 At The Same Time 2012-11-14

    Running Apache2 With PHP5 And PHP4 At The Same Time Version 1.0 Author: Falko Timme Last edited: 02/07/2006 This tutorial shows how to install and configure Apache2 with PHP5 and PHP4 enabled at the same time. Because it is not possible to run both P

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 1.066 (s). 13 q(s)