I spend most of my day switching between languages. Sometimes I start the morning with an early dose of LUA, then I get a lot of Python and C++, followed by the yummy dessert that is Node.js. But there’s always room for PHP. So let’s talk about PHP today. People often think that when you [...]
Just a few days ago, I was happy to see my first book published. Entitled CakePHP 1.3 Application Development Cookbook, it’s a book released in the form of a cookbook, with a series of solutions to common problems one faces when developing CakePHP applications. While working on it, I tried to aim for developers at [...]
Today I noticed my MySQL partition was taking over 86 GB of the available 120 GB. So I got worried and I wrote this little script to tell me how much space each DB I have is taking: <?php function format($size) { $unit = ‘B’; $units = array( ‘GB’ => 1024 * 1024 * 1024 [...]
Microsoft has recently published their own MSN Search API (now competing with Google and Yahoo) implemented as a SOAP Web Service. After some deliberation on the MSN Search API forums, I managed to develop a small PHP class to handle the API (thanks to quodlibet for his help identifying a small bug.) The class uses [...]
Some of you may have heard of Ajax, while some may have not. The truth of the matter is that Ajax (Asynchronous JavaScript and XML) is a technology to be followed. Furthermore, a technology to be used! To give a little background about it, let’s see what wikipedia has to say about it: “term describing [...]