Back to index

php5  5.3.10
Functions | Variables
urlgrab5.php File Reference

Go to the source code of this file.

Functions

 dump_nodes (tidyNode $node, &$urls=NULL)

Variables

 $a = tidy_parse_file($_SERVER['argv'][1])

Function Documentation

dump_nodes ( tidyNode $  node,
&$  urls = NULL 
)

Definition at line 15 of file urlgrab5.php.

                                                       {

       $urls = (is_array($urls)) ? $urls : array();
       
       if(isset($node->id)) {
           if($node->id == TIDY_TAG_A) {
              $urls[] = $node->attribute['href'];
           }
       }
                  
       if($node->hasChildren()) {

           foreach($node->child as $c) {
              dump_nodes($c, $urls);
           }

       }
       
       return $urls;
    }

Variable Documentation

$a = tidy_parse_file($_SERVER['argv'][1])

Definition at line 36 of file urlgrab5.php.