I am trying to parse a website to obtain aeronautical information. Here is the link to the website
The problem is the script shows only the first 20 entries ( a single pages worth) from the the entire result set (38) and I am unable to iterate through others pages, as the next url doesn't have any page information. here is my code:
$DOM = new DOMDocument();
$DOM->loadHTMLFile($url);
$selector = new DOMXPath($DOM);
$elements = $selector->query('//td[@headers="notam"]');
if (!is_null($elements)) {
foreach ($elements as $element) {
echo "<br/>";//[". $element->nodeName. "]";
$nodes = $element->childNodes;
foreach ($nodes as $node) {
$display = $node->nodeValue;
if($display <> NULL){
echo $node->nodeValue. "<br>";
}
}
}
}