| » most recent | recently popular | most popular |
A quick easy way to convert a PHP object to an array by using the (array) cast.
Use this class to measure how long it takes for a script or function to execute
This function will create a new popup window of a given dimension with the url specified.
Describes how to use activerecord as session store
Cross-browser function which finds the pixel coordinates of an element within a page
Many people don't realize that the escaping for XML and HTML is subtly different. In PHP, people often use htmlentities when they want to escape XML, but that doesn't handle some of the substitutions correctly. Here is some code found in some comments...
Rate limiter class for Ruby that ensures that a minimum time elapses between invocations of blocks of code. More detail available at http://www.gregspurrier.com/2006/09/rate_limiting_r.html
A couple of quick examples of how to do a regular expression match in PHP.
Check a passed string is a valid e-mail format, does not truly check if it is a valid e-mail, just that it looks right.
Similar to htmlspecialchars but escapes a string for use in javascript, for example being passed as a variable.
How to send the appropriate HTTP status code programattically using PHP. There are a few scenarios you may want to do this. I'm using this for a 301 redirect code, for an RSS feed to let the bot know that the RSS feed is in a new location and to fetch fro...
I recently discovered Microsoft's Visual Studio! Yummm.....
All this code should belong to a class
Create a simple directory of yahoo.
Fixes the default locale in ubuntu.