Case insensitive PHP in_array()
Simple function for using in_array() with case insensitive querying. function i_in_array($needle, $haystack) { return in_array(strtolower($needle), array_map("strtolower", $haystack)); }
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Simple function for using in_array() with case insensitive querying. function i_in_array($needle, $haystack) { return in_array(strtolower($needle), array_map("strtolower", $haystack)); }
If you ever find that you are creating a folder with PHP, and its immediately not writeable by Apache, then…
I recently wanted to add a Zend library to a project without adding the entire framework. I found that internally,…
IMAP To get imap support in PHP on your Mac, you need to get the php_imap module compiled for your…
You cannot strip a certain list of tags with PHP’s strip_tags() function, you can only strip ‘all but’ tags. So…
imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX This error /can/ be missleading. I thought something was up with the stream (guessing…
So you’ve made changes to your Apache config, but there are hundreds of uses currently online. To reload the config…
If you are switching on the AllowEncodedSlashes setting in the apache conf file, and it doesn’t seem to be making…
You can use the PHP function error_reporting() at run time to set the level of error reporting in your application.…
I recently needed to update a page that dumped a HTML table into Excel – and found it dumped everything,…