Newbie (to PHP) with a question about object construction.
Whenever I call any constructor, php stops rendering the page. Simple example:
<?php
echo "getting started";
$xmlDoc = new DOMDocument(); //but it could be any class, such as ErrorException, or DateTime
echo "but I don't get very far";
?>
I tried using ErrorException to find out what was wrong, but this error doesn't get caught - it appears that PHP parsing ceases with the constructor call!
Probably a very simple explanation but bless me if I know what it is!
thanks
Tom