why is new SimpleXMLElement($tags) causing my php script to crash;
<p>I am new to php.</p>

<p>I am trying to run some client code to call a server side API.
I put various put statements to see where the code crashes and the line crashing it is</p>

<pre><code>$tagXml = new SimpleXMLElement($tags);
</code></pre>

<p>(where tags is the result of a file_get_contents call)</p>

<p>I downloaded php5 and I am running it from the php source file from the command line.</p>

<p>Why is this crashing the code.
Perhaps there is an addon for php I need to add to use new SimpleXMLElement($param)</p>

<p>Thanks from a total newbie.</p>

<p>edit I got error reporting working
Warning: simplexml_load_file(): I/O warning : failed to load external entity "ht
tps://api.domain/v2/andy/tags" in C:\java\domain-api-v2\simple\list-
tags.php on line 30
working line 30
Fatal error: Uncaught exception 'Exception' with message 'String could not be pa
rsed as XML' in C:\java\domain-api-v2\simple\list-tags.php:37
Stack trace:</p>

<h1>0 C:\java\domain-api-v2\simple\list-tags.php(37): SimpleXMLElement->__const</h1>

<p>ruct('')</p>

<h1>1 {main}</h1>

<p>thrown in C:\java\domain-api-v2\simple\list-tags.php on line 37</p>
