Tuesday, 16 November 2010

PHP File / Page Names Containing Only Numbers

Just had a pretty cunning one where having moved a site to a new server running PHP version 5.3.3 pages/files that were named with only numbers (e.g. 123.php) raised a 500 internal server error page.

This had clearly not been a problem on the previous Windows (IIS) server running PHP 5.2, but was on this one. Now whether or not this was a PHP version difference or a server difference, I don't know.

I fixed it by renaming the file to contain at least 1 letter. So it is now named 123a.php.

No comments:

Post a Comment