:SimpleXMLElementエラー:複数回!私は私のエラーログにこれらのエラーを発見した
[05-Aug-2009 12:57:27] PHP Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:^in /home/mojo/public_html/shackupload.php on line 37
面白いことに、私はすべて同じタイムスタンプを持つ私のエラーログには約200以上のを持っていたです!何が起こっているのですか、それほど多くの理由がありますか?
問題の行はこれです:
if(!(substr($res, 0, 6)=='Failed')){
$xml = new SimpleXMLElement($res) or die('Error creating a SimpleXML instance');
$imagelink = (string) $xml->image_link; // This is the image link
$_SESSION['shack_link'] = $imagelink;
echo 'done';
}