I have the following script saved as 'index.php':
<?php
$implementation = new DOMImplementation();
$doctype = $implementation->createDocumentType('html');
$document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $doctype);
$head = $document->createElement('head');
$document->documentElement->appendChild($head);
echo $document->saveXML();
Now when I run the script, I get nothing at all (i.e. no source XML is being received by the browser). Error reporting is set to E_ALL | E_STRICT in php.ini yet the browser shows nothing. To test my installation, a quick "echo 'hello world' proved PHP and my server are working". Are there any instances where PHP will output nothing at all? If so, are there any ways to go about debugging them?
Thanks in advance for any help/tips/pointers:)