After 6 hours of massive anxiety, stress, near tears, one pound on my desk, and some hair pulling, I tracked down the source of a nagging Disallowed Key Character error that I received while using CodeIgniter: an extra line break. The line feed (LF) and carriage return (CR) characters (and their hex code equivalents (%0D [...]
[6 May 2008]
UPDATE: This could also be done with the foreach() construct, but here — on my set-up at least — the for loop is a teensy bit faster. I developed this PHP function for a project I’m working on. I’m posting it here in case I need it again, or in case you find it handy. [...]
[26 Feb 2008]
Packt Publishing graciously provided me with a copy of this book to review. PHP supports more than a dozen database setups, including the SQLite library bundled with PHP 5. That’s a lot of databases, and each one has its own connection syntax and server-specific functions. So what happens when you want to be able to [...]
[23 Oct 2007]
If you’re trying to get up-and-running with PDO, you may experience a “Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’” error when trying to connect to your database, even if your php.ini and my.cnf files contain a different default socket path for MySQL. It’s counterintuitive to a degree, but it’s actually expected behavior. The [...]
[22 Oct 2007]
Local PHP geeks rejoice! php|works 2007 is happening in our neck of the woods in about a month. Speakers include Atlanta PHP founder Ben Ramsey, PHP guru Sara Goleman and security expert Chris Shiflett. Event details When: Sept 13 – 14, 2007 Where: Sheraton Gateway Hotel How much: US$650 and $200 for the tutorial add-on. [...]
[15 Aug 2007]
You may remember that FletcherMartin launched OurIndustryIsBroken.com back in April. After receiving some feedback about the site, we tweaked it to enhance the user experience and allow us to track how visitors use the site. We’re using Google Analytics for high-level analysis such as referrals and search engine traffic. But we wanted to do more [...]
[23 Jul 2007]
The conference is now in its “Call for Papers” stage (proposals are due May 31). But it should feature a strong lineup of PHP industry experts. I will update this post ass more information becomes available, or you can follow the conference web site for details. When: October 8 – 11, 2007 Where: Hyatt Regency [...]
[16 May 2007]
What would you expect from a basic text editor? Let’s create a list of features: Support for plain text Syntax highlighting for HTML, JavaScript, CSS, PHP, SQL, Java, and Perl. Limited auto-complete Ability to connect to multiple FTP servers at once Ability to upload, download, rename and delete files. Line numbering Now what if this [...]
[15 May 2007]
Another post of interest: An interview with Timani Tunduwani on why he made the switch from CakePHP to PRADO. Related post elsewhere: You may be interested in PHP frameworks – Which one is Most Suitable for you? So I’m making my first foray into PHP frameworks. I’m tinkering with CodeIgniter right now. I chose it [...]
[16 Apr 2007]
Details for php|tek are finally up. Speakers include PHP heavyweights Wez Furlong, Ilia Alshanetsk, and John Coggeshall. Jay Pipes of MySQL is also set to present. Topics for talks include security, enhancing MySQL performance, debugging tools and design patterns. Sounds like a winner to me. The conference is, however, accepting papers through November 20, 2006. [...]
[8 Nov 2006]