php
Home php
PHP APC: How to Monitor Usage and Config for Optimum Performance
APC is the Alternative PHP Cache. It’s a handy caching utility for use with PHP. We use it with W3 Total Cache on our WordPress installations. It runs OK “out of the box.” But you likely need to tune the
How to install PHP GD2 Library on Ubuntu
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.
Restarting Apache Gracefully
If you are restarting the web server on a live website, you should do it gracefully. A graceful restart tells the web sever to finish any active connections before restarting. This means that active visitors to your site will be
How to View and Debug PHP Arrays
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
tags. For example,
How to Upgrade APC on Ubunutu
APC — the Alternative PHP Cache — is a handy caching utility for use with PHP. We use it with W3 Total Cache to speed up our WordPress sites. I recently had a little trouble remembering how to upgrade APC