I tried to get Text from another Website using Span I. I use this code
Code: Select all
$dochtml = new DOMDocument();
$dochtml->loadHTML(http://www.adcd.com/abc); // Note the website url end does not end with ".html,.php,.htm,etc."
$elm = $dochtml->getElementById('spanid1').innerHTML; // I tried to the get the Text of the Span Id "spanid1"
Thanks to all.