PHP

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 […]

WordPress

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

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: […]

PHP

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 […]

WordPress

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 Links

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 […]

PHP , WordPress

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 […]

apache , PHP , WordPress

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 […]

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close