Well, since this is a server error and not a PHP error, I don't know that it'd help much to add code for error_reporting() to the script.
Better would be to check the server logs. Is this Apache? IIRC, a number of the "FAQS" at www.apache.org deal with "Internal Server Errors" as well.
Of course, the puzzling thing is that it's only this script.
Hmm... are you sure that the "REQUEST_URI" variable is available to whatever webserver you are running :eek: -- possibility.....