Reputation: 1867
When I go to load this in the browser, nothing is displayed. If I comment out the last line it works fine. I thought that if the last line was causing some type of error it would be reported, rather than nothing happening.
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
echo "hello"
$xml = simplexml_load_file(dirname(__FILE__).'/svn_log.xml')
?>
Upvotes: 0
Views: 66
Reputation: 74217
Missing two ending/closing semi-colons.
The one for echo "hello"
is the most important one.
It's good practice to finish all lines with semi-colons.
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
echo "hello";
$xml = simplexml_load_file(dirname(__FILE__).'/svn_log.xml');
?>
Upvotes: 5