Archive for March, 2010

RE: Top 10 PHP Techniques That Will Save You Time and Effort

March 31, 2010
By SeanJA
RE: Top 10 PHP Techniques That Will Save You Time and Effort

I realise that I already posted something today, but this seemed like an emergency… I thought maybe this was a serious post when I clicked on it, then when I got to number 2 on the list (I had skipped reading his post about how you should write an index page), I thought maybe...
Read more »

Posted in Best Practices, Emergency, PHP, Programming, WTF | 27 Comments »

PHP DateTime is missing methods in 5.2

March 31, 2010
By SeanJA

It turns out that in PHP 5.2, the DateTime class is missing a couple of methods (get/setTimestamp) that are available in PHP 5.3. These are some strange methods to be missing as a lot of people in the PHP world seem to work on Timestamps using these concepts, so you would have thought that...
Read more »

Posted in Open Source, PHP, Programming | No Comments »

jQuery :contains selector and unicode characters

March 24, 2010
By SeanJA

I have an element like this (to save space in the menu since they can put up to 255 characters in it): <span class="tool_tip" title="The full title">The ful&#8230;</span> While this seems to work: jQuery('span:contains(…)'); this does not: jQuery('span:contains(&#8230;)'); I am pretty sure that it would be bad to use the first one because if...
Read more »

Tags: , , , , ,
Posted in Javascript, Open Source, Programming, jQuery | No Comments »

Documenting PHP Code

March 17, 2010
By SeanJA
Documenting PHP Code

I know we all hate documenting code, but it can really help out future you or me when we need to go back and fix something. Poorly documented code is the bane of anyone who will be taking on your code after you leave (or invite more people into) the project. One thing that...
Read more »

Posted in IDE, Open Source, PHP, Programming | 1 Comment »

Using the jQuery-UI Autocomplete Widget

March 10, 2010
By SeanJA

The latest version of jQuery-ui has an autocomplete widget. No more looking for one that will work (you get the point) with the version of jQuery that you have. All you have to do is pull the latest one down from the jQuery-ui site and you are good to go. First the jQuery to...
Read more »

Posted in Computer, Databases, Javascript, Open Source, PHP, Plugin, Programming, jQuery | 3 Comments »