how to read an web page by url.. using curl function.......
Posted: Thu Jun 21, 2007 4:39 pm
HI Friends......
well i have a issue of reading a web page by its url which [s]hv[/s] have same parameters to like http://www.blah.com?lang=EN...
this link is of the same web site from which its been used.......
i got a blank page after waiting a long time.......
i wrote a curl function code which reads the url of the other web sites & also gives the results but [s]wuth[/s] with the same website ,, its not working ... may [s]b[/s] be the url contains parameters thats why it is so......
i give the code here can anybody help me for this please.....
well i have a issue of reading a web page by its url which [s]hv[/s] have same parameters to like http://www.blah.com?lang=EN...
this link is of the same web site from which its been used.......
i got a blank page after waiting a long time.......
i wrote a curl function code which reads the url of the other web sites & also gives the results but [s]wuth[/s] with the same website ,, its not working ... may [s]b[/s] be the url contains parameters thats why it is so......
i give the code here can anybody help me for this please.....
Code: Select all
$url = $HTTP_REFERER;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$returned = curl_exec($ch);
curl_close ($ch);
echo $returned;[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.