K
K
kapai692014-09-24 13:54:50
PHP
kapai69, 2014-09-24 13:54:50

How to parse an iframe in PHP?

There is a google custom search on a third party site, how to parse the results of this search. Does it push the results into iframe ajax'om?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolaj Sarry, 2014-09-24
@Straven

$dom = new DOMDocument; 
@$dom->loadHTML('URL_HERE');
$iframe = $dom->getElementsByTagName('iframe');
foreach($iframe as $iframeParam){
    $iframeArrParam[] = $iframeParam->getAttribute('src');
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question