Hi I've got a script which works fine on our development server but dies on the clients server.
error_reporting(E_ALL);
if (function_exists('simplexml_load_file')) echo "function exists";
if (file_exists('test.xml'))
{
echo("<hr>just about to read local xml file :".__LINE__);
$xml = simplexml_load_file('test.xml'); // dies here
In Perl you can trap such errors with eval, is there anything equivalent in PHP?