Mellion Posted March 17, 2017 Posted March 17, 2017 (edited) Hello, i wanna to ask how to use another website numbers pictures or else to mine website? Like this code $curl = new curl();$html = $curl->get_web_page('http://forums.fatakat.com/');$doc = new DOMDocument();$doc->loadHTML('<meta http-equiv="Content-Type" content="text/html; charset=windows-1256"/>'.$html);$xpath = new DOMXpath($doc);$elements = $xpath->query("//TABLE[@class=tborder]/TBODY/TR[@class='']/TD[2]/DIV[1]/A[1]/STRONG[1]");////$elements = $xpath->query("//*[@id=f3]"); //worksif (!is_null($elements)) {foreach ($elements as $element) {echo "<br/>[". $element->nodeName. ]";$nodes = $element->childNodes;foreach ($nodes as $node) {echo $node->nodeValue. "\n";}}} But this code not working for me Edited March 17, 2017 by Mellion
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now