RSS

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.


D:\xampp\php\PEAR\Net\Curl.php

<?php

include_once("Net\Curl.php");
$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.!

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
%d bloggers like this: