At this year's ZendCon conference a new technology was introduced (well, and upgrade to an existing product) that allows PHP developers to create Android applications from Zend Studio 10.ZendCon, the annual trade show for Zend, the PHP company, announced that Zend Studio 10 (Zend's IDE) will include functionalities that will let PHP developers prototype and build native mobile apps using PHP. The new capability includes a drag-and-drop mobile interface builder, integration with the Apache project's...
WordPress is already a great piece of software and if you use these great WordPress plugins, is your system is almost ready for production. After your WordPress website is finished, you should do some optimizations on the html source code and you have to manipulate the basic behavior of a few features. The following list [...]
On the Ibuildings blog today they've released the latest episode of their DPC Radio podcast series as recorded at this year's Dutch PHP Conference (2012). In this new episode, they share Boy Baukema's session "Let's Build a Parser".During this talk an introduction will be given to parsing. Terms like 'formal grammar', 'lexing / scanning', 'LL / LALR / PEG' will be explained and put into context. We will look at a recursive descent parsing as a practical way to parse languages. Finally the audience will...
On DZone.com Giorgio Sironi has a new tutorial looking at the Factory design pattern, specifically the use of a "collaborators map" to create them inside of a dependency injection container.Like for every library, you should first evaluate if the costs and benefit of integrating [a dependency injection container] are worth it. The alternative is to write your own factory classes, methods and closures: this article explains one of the patterns for building dynamic Factory objects, and as such lowers the...
In the spirit of Halloween coming next week PHPMaster.com has posted some spooky scary PHP code in their latest post from the editor of the site, Timothy Boronczyk.Break out the candy corn and apple cider; it's that time of year again! The rest of the world may not celebrate Halloween as hog wild as in America, but I thought it'd be fun to share some scary PHP stuff to mark the holiday. This is a fun article, sharing with you some scary (but logical) behavior found in PHP itself, and spooky (and possibly...
Recent releases from the Packagist:desarrolla2/cache (v1.0.0-rc.1)
mf2/mf2 (v0.1.6, v0.1.5, v0.1.4, v0.1.3, v0.1.2, v0.1.1)
Extremely Simple Cache
PHP jQuery updater
Simple Paypal payflow
SVG math functions graphics
PG Web Service
Captcha to download
Sign on display
Process MaxMind Countries, Regions and Cities Files
PHP Code Encrypt API
Mock HTTP Server
PHP Array Search
If you're running this code in Lithium, it's not doing what you think it's doing:
$count = Results::find('all', array('conditions' = array('fruit' = aapples')))-count();
This is a really easy line of code to end up writing, especially if you've been reading the MongoDB docs a bunch, or are just porting some code into the application. That's because if you were accessing the MongoDB driver directly you would want:$count = $collection-find(array('fruit' = aapples')-count();or in MongoDB at the command...
The Voices of the ElePHPant podcast has released their latest episode - an interview with Peter Meth, one of the organizers of the True North PHP Conference.They talk about conference organization and the upcoming CodeConnexx conference coming in November (happening Indianapolis, Indiana).You can listen to this latest episode either through the in-page player, by downloading the mp3 or by subscribing to their feed.
My slides introducing PHP 5.4.8 from the talk at ZendCon are now available online and can be downloaded at: http://ilia.ws/files/zendcon2012_php54.pdf
There is no arguing that the world has turned mobile. I
believe that it is time for application developers to adopt a mobile-first
mentality. In this post I'm going to outline what I believe that means, and how
Zend intends to help developers and companies make mobile first a reality.
A mobile first approach is essential as mobile devices (including
tablets) are quickly becoming the most popular access point for online
interactions. A mobile-first mindset focuses on delivering a strong contextual
A discussion has started up on Reddit.com about the request for a "$_PUT" superglobal to match the already existing "$_POST" and "$_GET" (as is mentioned in this bug).Data that is posted to PHP via the PUT method is not parsed at all and is not
available to PHP. This is particularly problematic for data sent encoded as 'multipart/form-data'. [...] This is something that would help every RESTful interface that people are trying to do with PHP. There are many people who have these problems and have to...
True North PHP
On PHPMaster.com there's a new tutorial showing you how to work with files and directories through your PHP applications.In this article I'll talk about a common task you might have experienced while developing a PHP application: listing files and directories. I'll discuss several basic and advanced solutions, each having its pros and cons. First I'll present three approaches that use some very basic PHP functions and then progress to more robust ones which make use of SPL Iterators.The solutions they...
If you weren't able to make it to this year's ZendCon conference (happening right now in Santa Clara, CA) you can at least get a little taste of it though their live video stream of the keynotes.There's five sessions they'll be sharing via the stream starting today and running through the 25th:
Opening Keynote - Andi Gutmans (Zend)
Open Source Cloud Technologies - Jimmy Guerrero (Red Hat, Inc.), Adrian Otto (Rackspace) and Peder Ulander (Citrix Systems)
The Media Industry and Moving to PHP - Raghu Bala...
Recent releases from the Packagist:mandrill/mandrill (1.0.9)
rdlowrey/artax (v1.0.0-rc.6, v1.0.0-rc.5)
Latest PECL Releases:
Sherif Ramadan has a new post that gets into some good detail about what you can expect in the upcoming PHP 5.5 release with loads of new features.There's been some talk about PHP 5.5.0 over the past couple of months even though it is barely on the horizon. The reason for this is that the PHP project has seen some increased levels of activity over the last two years since the dawn of PHP 5.4 and now in to the early twilight phase of PHP 5.5.0-dev. For those of you that haven't been following the...
In this new post to DZone.com Andy Hawthorne explains how to install MongoDB on OSX and get a local PHP working with it.MongoDB is a document oriented, NoSQL database. It is gathering momentum and popularity amongst developers because it is flexible, and scalable at the same time. In this article I will describe how I got it set up and working on my Mac running OS X 10.8.2 and MAMP with PHP 5.2.17, and PHP 5.3.6.They go a bit simpler route than trying to compile it yourself by using the binaries direct...
I have not been writing any blog posts for a while. That was because for the past two years I have been busy working in a team that develops the Windows Azure Web Sites - a scalable web hosting platform in Windows Azure.
Now that the Windows Azure Web Sites (WAWS) is publicly available I decided to try to move my site from private hosting Ato Windows Azure. My site uses WordPress (with MySql database), PHP 5.3, WinCache object and user cache, URL rewriting and many WordPress plugins. With all these...