View Single Post
  #1 (permalink)  
Old 10-04-2004, 05:06 AM
AjiNIMC's Avatar
AjiNIMC AjiNIMC is offline
WebProWorld Pro
 
Join Date: Aug 2004
Location: India
Posts: 279
AjiNIMC RepRank 0
Default php - curl - proxy ? help plz

Hi all,
I am trying to do some proxy stuff , I am able to retrieve the page but not able to catch the return , what I am doing is

Quote:
passthru("curl --proxy 195.115.142.120:80 xyz.com");

or

exec("curl --proxy 195.115.142.120:80 xyz.com");
It throws the results (displays the xyz.com) to my page but I want to catch that in a variable like

$variable=passthru("curl --proxy 195.115.142.120:80 xyz.com");
or
$variable=(some php fucntion)("curl --proxy 195.115.142.120:80 xyz.com");

echo $variable ,

should give me the page.

Regards
AjiNIMC
__________________
Be web educated - Client education series - Let not your SEO company cheat you. When they screw your website, they lose one client and you everything.
Reply With Quote