Php script generates 500 Internal Server Error

software development

#1

I have a simple script
[php]

<?php $dt = new DateTime("apr 08 1986", new DateTimeZone("Asia/Kolkata")); echo $dt->format("Y m d"); ?>

[/php]

This works okay.

And the moment I introduce an impurity, the script generates a 500 Internal server error

[php]

<?php I am an impurity here // note that the above line is not commented $dt = new DateTime("apr 08 1986", new DateTimeZone("Asia/Kolkata")); echo $dt->format("Y m d"); ?>

[/php]

I can not understand what behaviour this is. I cant debug a and the installation of my site is on hold!!

Background : For the requirement of namespaces and oops, I upgraded the domain to php 5.3 with fast-cgi and since then I am not in peace.
There are no htaccess files in the directory structure leading to this script.

Thanks
r


#2

Whoops, looks like the default php.ini for PHP 5.3 contained a subtle error that made it not display error messages. I’ll be fixing this later today.


#3

… and fixed. New php.ini files should be distributed shortly.


#4

Thanks so much andrew. That was really prompt. :slight_smile: