All posts under Tag : curl
Fetching a random article from Wikipedia
Posted in : blog.kapilchhabra.com Tue, Jun 03 2008, 04:33
Using the CURL class from my previous post, its very easy to fetch any webpage, a random article from Wikipedia for instance.Just use the following script and you are done.<?php include("myCURL.class.php"); $curl = new myCURL(); ...
http://blog.kapilchhabra.com/2007/03/f...
http://blog.kapilchhabra.com/2007/03/f...
Working with CURL in PHP
Posted in : blog.kapilchhabra.com Tue, Jun 03 2008, 04:33
To make life very simple, I have written the following class "myCURL.class.php".<?phpclass myCURL {var $curlSession;function setCURLOpt($opt, $value){ global $curlSession; curl_setopt($curlSession, $opt, $value);}function req($method, $url, $vars,...
http://blog.kapilchhabra.com/2007/03/w...
http://blog.kapilchhabra.com/2007/03/w...
1



