Fork me on GitHub

Tag: php5

Tag Archives: php5

MacPorts, php5-mysql & mysqlnd

If you don’t know what that title says, don’t bother reading on 😉 A little useless history: MacPorts decided to use the recent release of PHP 5.3 to change the way they handle PHP5 Extensions. They used to be applied by the MacPorts variants system but have been changed (and appear to still be in […]

August 26, 2009 | PHP Scripting | 4 comments

Classes for file uploading in PHP

Surprisingly, I still get a lot of referrals from The Stickman for his work on a multi-file javascript upload helper on which I briefly assisted on Safari compatibility. The script adds and removes file upload form elements as requested by the user. So a form can be designed to handle as many uploads as you’d […]

December 22, 2006 | PHP Scripting | 45 comments

5.2 or not 5.2, that is the question…

I so badly want to start using some of the new features in PHP 5.2 but don’t want to get too far into it before our web host at work makes the switch. After all, they’re still on PHP 5.1.1. With so many neat additions to the language its hard to resist, but I don’t […]

December 6, 2006 | PHP Scripting | Comments Off on 5.2 or not 5.2, that is the question…

PHP: Sort Multidimensional arrays by key

Update 2009-07-29: This code has been updated and posted here: Sort Arrays by Key Revisited. So, I had to do some array sorting this week and finally bit the bullet and wrote a class to handle it. If you’ve got the need to sort a multidimensional array by a sub-array key then this might be […]

November 8, 2006 | PHP Scripting | Comments Off on PHP: Sort Multidimensional arrays by key

Ajaxy goodness and Safari form behavior

Yeah, so I’m about a year behind everybody else on this one. I finally wrote my own little Ajax class. Most other classes out there were way too much for what I needed and I also needed to get my feet wet in OOP programming for Javascript so this was a keen little exercise for […]

April 14, 2006 | Web Design & Development | 1 comment

mySQL Class Updated for PHP 5 part 1

I’ve updated the SQL class to use some native PHP 5, namely constructors and destructors and include some backward compatibility so PHP 4 does not freak out when it loads the class. I’ll hopefully be making this 100% PHP 5 native soon enough as I’ll actually have a native PHP 5 environment to apply it […]

March 6, 2006 | PHP Scripting | Comments Off on mySQL Class Updated for PHP 5 part 1