I am trying to click on href attribute Here is my sample html
<ul>
<li>
<a href='http://www.google.com'>Google</a>
</li>
</ul>
And Here is my php code
<?php
require_once('classes/simple_html_dom.php');
$html = file_get_html("/var/www/html/dk/PHP_SCRAPPING/google.html");
echo $html->find("ul li a",0)->href;
?>
Output is
http://www.google.com
I just want to click on this url. How to do that? Please don't tell me to do this
file_get_html($html->find("ul li a",0)->href);
I am looking for method which can click on any href by using simple html dom.