 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPEverywhere: Octalpussy
by Chris Cornutt February 04, 2008 @ 10:25:00
In an earlier post John Lim pointed out an interesting issue with how certain numbers are handled in PHP - ones starting with a zero:
That's because any number preceded by 0 is treated as an octal number, and 9 is an invalid octal number. [...] The silly thing is that hardly anyone uses octal nowadays, but it continues to be part of the C, C++, Java and PHP standards. The mistake is also very common.
There's not much way around it, he notes - the format's been in use for a long time now and is so ingrained in just about every C-based language out there that it's "too deeply imprinted in modern compiler DNA" to take out.
voice your opinion now!
octal number bug base8 adodb
PHPEverywhere: Octopussy numbers in PHP
by Chris Cornutt February 01, 2008 @ 09:21:00
John Lim has posted about an interesting bug he's come across when working with the output of two strings that should look the same:
Someone reported a bug in ADOdb, the open source db library i maintain. I went crazy for half an hour until i realised the problem.
According to him, "if you expect the above code to produce the same values, you are sadly mistaken". His example gives an interesting result for the first echo statement - not echoing the 9 in the first character like it seems would make sense. Check out his post for the code and try it out for yourself.
voice your opinion now!
number echo adodb database gotcha
Hasin Hayder's Blog: Prelude to foundation Its time to go for a better PHP Framework
by Chris Cornutt April 23, 2007 @ 15:54:07
In a new blog entry today, Hasin Hayder tells the reader a "little story" about a journey he made to get to framework happiness with CodeIgniter.
He walks through his thoughts and needs at different stages of the development process - a database abstraction library here, version control there - and ending up with the framework choice that faced him. Among his options were offerings by Prado, Seagull, Symfony, CakePHP and his pick - CodeIgniter.
Suddenly I got codeigniter and I was able to run a whole lot of controllers, templates and models in minutes (well not in minutes, but much less time than previous ones). A rich , pleasing to read, friendly set of documentation, a bunch of in built libraries and less autonomous control gives me full freedom over my application. It was easy to integrate my old friend smarty with it, in case it comes with it's own active record, but it gives me chance to add adoDB with it. I fall in love with code igniter soon after i realize that it comes with almost zero learning time (or i better say learning on demand)
He also mentions that, had the post been a bit more technical in nature, other factors would have been included. As it is, though, it flows a bit better this way.
voice your opinion now!
framework codeigniterframework story smarty adodb mysql framework codeigniterframework story smarty adodb mysql
PHPEverywhere: My experience moving to PHP5
by Chris Cornutt December 04, 2006 @ 08:22:00
In his new post on PHPEverywhere today, John Lim shares some of the experiences he's had so far in making the move up from PHP 4 to PHP 5 in his applications.
The transition was relatively painless. [...] What's nice about PHP5 is that it caught some errors that have been lingering in our code: PHP5 no longer allows a function to be defined twice, and some basic variable referencing errors that we missed previously.
They made the move to PHP5 for the latest versions of their applications, but have still stuck with the legacy, PHP4 versions for the time being to give customers a buffer period to make the move themselves. He also mentions changes to the way they make Ajax calls. John is a lead developer for both the ADOdb and PHPLens projects.
voice your opinion now!
upgrade php4 php5 experience painless phplens adodb upgrade php4 php5 experience painless phplens adodb
PHP-it.net: Creating a chat script with PHP and Ajax (Part 2)
by Chris Cornutt April 04, 2006 @ 07:09:48
PHPit.net is following up This previous article with the next in the series today - Part Two of "Creating a chat script with PHP and Ajax".
Welcome to the second part of the 'Creating a chat script with PHP and Ajax' series. It's been a while since the previous part, and much has happened since then. 37Signals, a very popular "web 2.0" company, has released a web application called Campfire which is actually a chat script based on Ajax and Ruby on Rails, and it has many of the features we'll be implementing in this article series.
In this part we'll start from scratch again, but this time we'll start with a solid structure. Unlike the previous part, which was more or less a hack job, we'll start using JSON and several other libraries to make everything easier for us. I will also show you how to add a few more features, like a user list.
It's definitely good to see that they aren't just building on the previous structure, but setting asside time to really plan out the application before getting started. Instead of hacking together an application that "works, but just barely", they opt for using solid libraries like ADOdb and Prototype for the power behind the scenes.
Right off the bat, they show you how to set up the filesystem structure, the database structure, and the basic framework of PHP code for the client to interface with. From there, it's just the creation of the other pieces of the puzzle - the interface, functions to handle the login form, and a method to ping the server for new messages, and, of course, the backend to handle it all.
voice your opinion now!
php create chat script ajax adodb prototype json-php php create chat script ajax adodb prototype json-php
Dan Scott's Blog: ADOdb - getting good support for IBM DB2, Cloudscape, and Apache Derby
by Chris Cornutt February 13, 2006 @ 06:48:24
Dan Scott has a new post today about support that's been created on the part of Larry Menard for the ADOdb library - a driver built on top of the ibm_db2_extensions.
The stable release of the ibm_db2 PECL extension for IBM DB2, Cloudscape, and Apache Derby brought a high performing, highly functional database connectivity alternative to Unified ODBC for PHP 4 and 5 users. However, in and of itself a database extension does not enable you to use the many PHP applications that you might want to use. You either have to add a specific driver for each application that implements its own portability layer, or if the application relies on one of the standard database abstraction layers (PEAR DB, MDB2, or ADOdb), then a driver needs to be added to the corresponding database abstraction layer.
Now, however, as part of Larry Menard's efforts to enable Gallery 2, an ADOdb driver built on top of the ibm_db2 extension will, in all probability, be made available as part of a future ADOdb release.
The driver mentioned here is a huge leap forward in the support (and, I imagine, popularity) for the use of the IBM DB2 database system. ADOdb is one of the more widely used database abstraction layers out there, and introducing something like this can only help...
voice your opinion now!
php adodb imb db2 driver support php adodb imb db2 driver support
|
Community Events
Don't see your event here? Let us know!
|