Aww, look! Little Bobby Tables is all grown up and in a CAPTCHA now. (via Reddit) Relevant xkcd comic. (Oh look, it’s almost 10 years old!)
PHP Notice: Undefined variable: _SERVER in ..
I upgraded Linux on this server a while back and in the course of that upgrade PHP was upgraded too, to version 5.5.9. Since I had a modified php.ini it asked me to check over any new options. There were a few but I fixed anything that looked like it […]
cSprites for PHP 5.3.1/2
Joost posted a great article on reducing http requests on WordPress sites recently and one comment caught my attention. Nabil mentioned cSprites. It’s a WordPress plugin that merges the images in your posts into one file and uses CSS to position the single merged file in place of the original […]
PHP is_numeric() vs is_int()
Some lessons you don’t forget, but this one I did because it doesn’t come up very often. Don’t use is_int() because, as Jeremy says, it’ll lie to you. Use is_numeric() instead. Copy the following chunk of code into a php file and run it. You’ll be surprised at the outcome: […]
No activity within 1800 seconds; please log in again
1800 seconds is such a long time, right? It’s 30 minutes. It’s 0.5 hours. It’s 0.0208333333 days. It’s also 5.70397764 × 10-5 years. And it’s not long enough for me. phpMyAdmin logs you out after 1800 seconds, obviously for security reasons. That’s fine if there are other people about, if […]
Ping. The ping heard across the world
If you’re wondering why trackbacks and pings aren’t working on your blog then you might want to do what I did earlier today: allow your blog to talk to other servers. WordPress needs either allow_url_fopen to be set On or to have the Curl extension loaded. If you’re having problems […]
Donncha's Thursday Links
I have to admit, I preferred how WP 2.2 displayed lots of draft posts on the edit and post pages. Having to go to the Write page and click on the “54 more” link is annoying. For some reason, this post didn’t show up as the newest draft. Now it […]
Is your eAccelerator cache dir still there?
While looking through this WordPress performance post I realised that eAccelerator might not be running properly on this blog. For some time I’ve noticed this site hasn’t been as quick off the mark as it used to be. Dare I say it, but it was even a little sluggish! If […]
Notes when upgrading to PHP5
I upgraded one of my servers to PHP5 this morning. Two things to watch out for: The location of your php.ini may have changed. It’s probably now in /etc/php5/apache2/. You need to copy over any changes from your old one. Update your libraries too such as the mysql client and […]
Cannot load mysql extension. Please check your PHP configuration.
A friend recently had a problem configuring a new server. He installed PHP, Apache, MySQL and phpMyAdmin but when he launched it he got the following error: phpMyAdmin – Error Cannot load mysql extension. Please check your PHP configuration. If you’ve installed all of the above more than once you’ll […]