Lorna Mitchell has a new post to her blog providing what she calls an idiot-proof guide to deployment with Phing, the popular PHP-based deployment tool based on Apache's Ant.When I launched my own product recently (BiteStats, a thing to automatically email you a summary of your analytics stats every month), I knew that I would need a really robust way of deploying code. I've been doing a few different things for a few years, and I've often implemented these tools with or for other organisations, but I...
It's been a few months since I mentioned it, but php|tek 2011 is quickly closing in on us. I'll be attending with several of my fellow Synacorians as well as giving two sessions, Accessing Web Resources with PHP and Creating Desktop Application with Titanium and PHP.
Synacor, the company I work for, is one of the sponsors for php|tek. Knowing how much we all enjoy these conferences, I encourage you to take a moment while you're at php|tek and voice your appreciation to Synacor representatives. Also, if...
In a new post to his blog Chris Jones talks about a new way Oracle's developed to run PHP applications - Oracle Tuxedo, a web application server with specific support for PHP.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, and managing requests, events, and application...
Jason Gilmore has put together a list of sixteen best practices and tools you can use to help make your PHP development life easier and the quality of your code better.[I spent so] much time in fact that in 2010 I penned more than 130 articles. Many of these articles focused on PHP-specific best practices and productivity, two topics which should resonate closely with anybody involved in building websites for a living. So I thought it would be useful to compile a list of the sixteen tutorials which touch...
Shay Ben Moshe has a new post to his blog looking at a method he's come up with for hashing passwords the proper way and saving them to a database for future checking. His encryption methods of choice crypt and a random salt generator.
The easy and common solution for this particular problem is to use an one-way hash function, such as md5 and sha1, which takes the password and encrypts it.
Unfortunately, this method is not as strong as you may think. [...] We can protect our password from rainbow tables...
Every now and then you run into this weird situation in your code, where something that was supposed to zig is now zagging and it makes no sense whatsoever. For me this ends up happening in my unit tests since i'm not running everything in the browser everytime and since my tests usually run more scenarios then a regular browser run, that's where the weird stuff happens.
So your obvious way out is to add a few var_dumps into the code and try to understand what is happening, if you are doing that: STOP!...
Popular posts from PHPDeveloper.org for the past week:Chris Aitchison's Blog: You are NOT a Software Engineer!
Symfony Blog: Symfony2: Getting easier (Parts 2 & 3)
Gonzalo Ayuso's Blog: Real time monitoring PHP applications with websockets and node.js
Paul Jones' Blog: Different Definitions of Quality
Kevin van Zonneveld's Blog: Revisiting Faster PHP Sessions
PHPRiot.com: Translating Text Using the Google Translate API and PHP, JSON and cURL
Lorna Mitchell's Blog: PHP OAuth Provider: Initial...
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 220.127.116.11 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
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?
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...