You are currently browsing the archives for posts tagged as PHP.

Improper 404 Error Handling Fix For WordPress 2.5

I’ve upgraded several of my blogs to WordPress 2.5. However, I noticed that two of them didn’t handle 404 (Page Not Found) errors properly after the upgrade. Every invalid URL gets redirected to the index page; worse still, they returned a 200 server response code which tells the browser that the URL is valid!

Another bad outcome of this bug is that your sites won’t get verified in Google Webmaster Tools.

This problem only occurs on WordPress blogs that uses a page (instead of the more common latest posts listing) as the front page. So how can we fix this?

Read the rest of Improper 404 Error Handling Fix For WordPress 2.5 »

Yahoo! Pipes Now Supports Serialized PHP Output

Yahoo! Pipes is an interactive feed aggregator and manipulation tool. It can combine, filter and sort multiple feed data and spit out a single customized feed that you can use for yourself or share with others.

Before today, JSON has been the only way for you to obtain the output data of a Pipe. Now, Yahoo! has provided a second way to do this: serialized PHP.

I’m sure those who are more proficient with PHP will find this feature very useful. Thanks Yahoo!

Nonsensical Software Licensing

I’ve seen some PHP scripts that are distributed for free but with an illogical license. Let me show you of a sample license that in my opinion, makes absolutely no sense:

XXX is free software. This License grants you to use this software free of charge for as long as you wish. You may not use, copy, rent, lease, sell, modify, decompile, disassemble, otherwise reverse engineer, or transfer the licensed program except as provided in this agreement. Any such unauthorized use shall result in immediate and automatic termination of this license.

Read the rest of Nonsensical Software Licensing »

My PHP Cache System Hunt

I’ve been hunting for a nice PHP caching system to be implemented on my server. I’ve looked at APC and eAccelerator. Both looks like a mature and feasible caching system for PHP. I then compiled and installed them (one at a time of course) on the server and I was very surprised by the results!

Read the rest of My PHP Cache System Hunt »

How To Get Your Feedburner Subscriber Count Using PHP

Feedburner is an awesome service for web sites that publishes RSS feeds. One area it’s particularly good at is at collecting and presenting statistics about your feeds.

If you use Feedburner, you probably have the Feedburner chicklet displaying the number of subscribers to your feed. It looks something like this:

Have you ever wanted to get the number of subscribers in plain old text to be used in your web pages? If you want to know how to do this in PHP, continue reading.

Read the rest of How To Get Your Feedburner Subscriber Count Using PHP »