I have this page test1.php on this other page test.php i have this php code running:
<?php
libxml_use_internal_errors(true);
$doc = new DOMDocument();
$doc->loadHTMLFile("http://inviatapenet.gethost.ro/sop/test1.php");
$xpath = new DOMXpath($doc);
$elements = $xpath->query("//*[@type='text/javascript']/@fid");
if (!is_null($elements)) {
foreach ($elements as $element) {
$nodes = $element->childNodes;
foreach ($nodes as $node) {
echo $node->nodeValue. "
";
}
}
}
?>
But shows nothing.
i'm trying to get from that page, only the content of fid="x8qfp3cvzbxng8e" :
From this Line
<script type="text/javascript"> fid="x8qfp3cvzbxng8e"; v_width=640;
v_height=360; </script>
The output shold be:
x8qfp3cvzbxng8e
Wath I have to do?