Code: Select all
$googleurl="http://www.google.com/search?q=define:bios";
$file = file_get_contents($googleurl);
$define0=explode("<ul",$file);
$define1=explode("ul>",$define0[1]);
echo "<ul".$define1[0]."ul>";Moderator: General Moderators
Code: Select all
$googleurl="http://www.google.com/search?q=define:bios";
$file = file_get_contents($googleurl);
$define0=explode("<ul",$file);
$define1=explode("ul>",$define0[1]);
echo "<ul".$define1[0]."ul>";Code: Select all
$googleurl="http://www.google.com/search?q=define:bios";
$file = file_get_contents($googleurl);
cURL is a PECL extension. Pear is something different (a library of classes). And cURL comes built in with the standard PHP installationit will require pear to install it
oops, cheers pytrin, although on ubuntu linux, after installin php I have to install cURL using sudo apt-get install php5-curl, so arctushar might want to note that it may not 'just work' with the standard installation on all platforms.cURL is a PECL extension. Pear is something different (a library of classes). And cURL comes built in with the standard PHP installation