My previous post about using Silex and AppServer-in-PHP similarly to ExpressJS generate quite a bit of interest. In the Hacker News thread there was a question about memory usage, and so I put the AppServer under siege. Memory usage stayed constant at:
13958 bergie 20 0 125m 10m 2136 S 1 0.6 0:00.28 php
13959 bergie 20 0 125m 10m 2136 S 1 0.6 0:00.31 php
Then I did the same Siege for the ExpressJS version:
14051 bergie A A 20 A 0 A 615m A 12m 4988 S A A 0 A 0.7 A 0:00.34 node
The PHP implementation...
The Oracle Tuxedo team have posted an Oracle Tuxedo 11.1.1.2 Web
Application Server Demo for PHP. It is a VirtualBox VM so you can
immediately test it out. The free VM is available from OTN's Pre-Built Developer VMs page.
Oracle Tuxedo provides a scalable and highly available mid tier
platform capable of managing and integrating heterogeneous
applications. This overview datasheet explains its capabilities: "Oracle
Tuxedo provides a service-oriented infrastructure for efficiently
routing, dispatching,...
On the PHP on Windows section of the DZone.com there's a new post from Naveen Balani about the WebMatrix tool from Microsoft and why PHP developers should be taking notice of it.Gone are the days when PHP developers had to turn away business because the clients used Windows Servers. If you are a PHP developer and have been looking for a cost-effective and easy way to begin developing web sites for clients on Windows, WebMatrix is your new best friend. With WebMatrix, Microsoft has created a new point of...
From RubySource.com there's a new post from a confessed developer who moved from PHP to Ruby about PHP's private visibility rules and how they compare to Ruby's.Alright class - today I'm here to talk about the differences and similarities that PHP and Ruby have when it comes to object properties, methods, and their visibility - how you create variables inside classes, and how you can interact with them.He compares the private properties in PHP classes to the corresponding handling in Ruby, including the...
The Mysqlnd replication and load balancing plugin alpha release has focused on laying foundations for read-write splitting and load balancing. Thus, we can now look into more juicy topics such as support of schemata based partitioning to increase the granularity of load balancing. Not every slave server needs to replicate ...
In a new post to his blog Chris Jones talks about the "gathering momentum" that's forming around the push to the next PHP release, PHP 5.4, including discussions on mailing lists and IRC.Discussion on the PHP mail lists and IRC channels in the past few days has been looking positive about an alpha release of PHP 5.4 soon. This will be taken from the "trunk" branch of PHP. The exact feature list is under discussion but the mood seems to be "ship what we currently have" though a couple of features are...
Thanks everyone for attending my talk, here's the slides which I presented. I'll post a recap of the event once I'm back in the US.
On NetTuts.com there's a new article stepping you through what you'll need to know about using FTP in PHP, including a basic useful and expandable class.It's always important to first outline exactly what functionality your class should include. In our case: connecting to a server, create a folder on the server, upload a file, change directory, retrieving the directory listing and downloading a file.They first look at what FTP is and then how to set up the class that includes some simple logging,...
Here's what was popular in the PHP community one year ago today:Josh Holmes' Blog: phpBB is in the Web Application Gallery
php|architect: Webcast: Making PHP faster on IIS
Superdit.com: Big List of PHP Framework
Daniel Cousineau's Blog: Netbeans Code Completion and your Zend_View
Court Ewing's Blog: The Best Models are Easy Models
Zend Developer Zone: Zend Framework Routing with XML
PHPBuilder.com: A Sanity-saving Debugging Solution for Your PHP Development
PHPClasses.org: Podcast Lately in PHP - Episode...
Retrieving e-mail messages using PHP from Gmail, Hotmail and Yahoo via POP3
By Manuel Lemos
Nowadays, most Web mail sites provide POP3 support, so you can retrieve your mailbox messages using PHP or any other language.
However, each system uses different ports and encryption configuration that you need to know in order to access them.
This article provides information on the details of accessing the messages on some of the most popular Web mail systems via POP 3.
It also provides a solution to a...
This weekend we had a hackday on PHPCR. The goal was to coordinate the efforts of Midgard to implement PHPCR with the Jackalope project. We ended up doing a few important cleanups to the PHPCR API definition (see below). We had Henri and Eero from the Midgard project, Benjamin from the Doctrine project and Jordi, Lukas, Chregu and myself (David) from Liip. On the second day, Uwe, Johannes and Dan join us to push the PHPCR doctrine layer further.
We had Henri and Eero from the Midgard project. They will...
What is OpenStreetMap?
London, UK
Thursday, May 12th 2011, 09:04 BST
With people more and more complaining that Google Maps gets it wrong, I often reply that the complainers have a look at OpenStreetMap instead. But there are a few misunderstandings on what OpenStreetMap actually is.
OpenStreetMap has its main site at http://openstreetmap.org. This shows a rendering of the map that we like to call a "slippy map". This is an online map, that can interactively be zoomed and paned. The slippy map on the...
disclaimer: I am not underestimating the universe's ability to produce idiots, the point I'm trying to make is that I haven't managed to make any deploy mistakes using this approach. Yet.
Once upon a time, a long time ago, I went onto a conference stage for the very first time and said that I thought I might be the world's ditsiest PHP developer. I actually still think that is pretty true, and if you work with me then you will know that I mostly break and fix things in approximately equal measure. With...
Discussion on the PHP mail lists and IRC channels in the past few
days has been looking positive about an alpha release of PHP 5.4
soon. This will be taken from the "trunk" branch of PHP. The exact
feature list is under discussion but the mood seems to be
"ship what we currently have" though a couple of features are
slated to be deferred until later.
A paragraph from a post by
Rasmus Lerdorf on PHP's "internals" mail list is worth re-broadcasting.
Rasmus is more than willing to grant PHP karma to...
This is a post for the "so I can find it again" category. (It is also a test for the new blogging infrastructure that Oracle migrated to last week).
After an upgrade to Ubuntu 11.04 on one 32 bit machine, my simple custom script to build PHP 5.3 from source failed. The script isn't complex, pulling in a couple of extensions that I use for sanity checking the OCI8 extension. I use the GD extension to generate some simple graphs.My configuration command was like:./configure ... --with-gd --with-jpeg-dir...
On PHPBuilder.com there's a new article showing you how to create a dynamic username validator with the combination of PHP, MySQL and jQuery to do some of the front end work.One of the easiest ways to streamline the registration process is by providing the user with real-time feedback regarding username availability. This is accomplished by monitoring the registration form's username field and immediately following the user's completion of this field, rather than waiting for the user to complete all...
DevShed has a recent post looking at a handy feature PHP includes to let you be a bit more flexible with your session handling - the custom handlers that can be used for fun things like MySQL session handling.Now the default PHP session management functions work just fine for most uses, and there is no reason to create a custom session handler if all you have is one server with a moderate amount of traffic and session use. However, remember that session data is stored locally on your server's hard drive....
On the PHP On Windows section of the DZone.com site Giorgio Sironi has a new post looking at the process (and script he's created) to create a UML diagram with PHP from a project's current class structure.Sometimes you need to share a design with your colleagues. You can walk him through the code, and explain which classes and interfaces you created, but there are higher abstracted models that you can show to him to make him grasp the picture quickly. One of these tools is UML, and in particular class...
We had the PHP Content Repository workshop at Liip in Zurich earlier this week. During the time we also discussed some other code reuse, like utilizing parts of the Symfony2 framework in Midgard. The Liip guys mentioned Silex, a cool micro-framework written on top of Symfony2. It greatly resembles the ExpressJS framework that we already use in some of our Node.js projects.
Here is a simple example of registering a route and displaying something when it is called:
get('/hello/{name}', function($name) {...
RubySource's resident PHP developer Mal Curtis delves into the differences between PHP's property visibility and Ruby's attribute accessor visibility. Read on to learn about how fundamentally different Public, Protected, and Private visibility is between the two languages.Read the full article-Confessions of a Converted PHP Developer: On Visibility and Privates-over on RubySource.
|
Latest PHP Tweets
|