Monthly Archives: February 2009

Web Browser in PHP

We can use PEAR (PHP Extension and Application Repository) for more real life application.
PEAR is a framework and distribution system for reusable PHP components.



$c = new Net_Curl();
$c->Net_Curl([URL], $_SERVER['HTTP_USER_AGENT']);
echo $c->execute();


This simple code spider the page as the other web browser do, even there is problems with Curl, Sockets etc.!

Leave a comment

Posted by on February 15, 2009 in resources


Tags: , ,