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)); }
wkhtmltopdf has a bug as a result of a webkit bug. This means that the nice css styles for table…
I have a particular Linux set up I need to test something on, but I use a Mac, so I…
I found that a script I was running was calling some linux functions using exec() but they weren’t always successful…
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,…
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…