My ISPs PHP server is now returning
500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
On what I thought was valid php, i.e.
if ( $_REQUEST[ 'some_data' ] == null )
{
echo "<p>No data</p>";
}
else
{
echo "<p>Some data</p>";
}
I have tried turning on error reporting with
error_reporting(E_ALL);
if (!ini_get('display_errors'))
{
ini_set('display_errors', "stderr");
}
So whilst I can make my code work by enclosing all checks of values in arrays with
if ( isset( $_REQUEST[ 'some_data' ] ) )
{
// ... do stuff
}
I don't understand and dianognois of errors is now taking a very long time. Can anyone give me a clue what is going on?