Web Browser in PHP

15 Feb

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: , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: