I  Build A Basic Web Crawler To Pull Information From A Website .
For it I create simple_html_dom.php.
Now my code is like
<?php
    include_once('simple_html_dom.php');
    $target_url = "http://www.example.com/";
    $html = new simple_html_dom();
    $html->load_file($target_url);
    foreach($html->find('a') as $link) {
        echo $link->href."<br />";
    }
?>
I get the error
Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\test\test.php on line 3
what is the problem plz help
 
     
     
     
     
     
    