debug
Sometimes when coding or debugging in PHP, it’s helpful to see the entire contents of an array. An easy way to do this is with the print_r command. To make it more readable, wrap it in <pre> tags. For example, to see the contents of associative array $FormData: You’ll see output like this: Array ( [...]
Read the full article →
php
I needed to install the PHP GD2 library to support the WordPress captcha plugin SI CAPTCHA Anti-Spam. I found the right library and installed it with this apt-get command: But SI CAPTCHA Anti-Spam test page still said GD Support: No. The fix? I had to restart apache: I tried the SI CAPTCHA Anti-Spam test again, [...]
Read the full article →