View Single Post
  #3 (permalink)  
Old Jul 4th, 2007, 02:02
shotokan99 shotokan99 is offline
New Member
Join Date: Mar 2007
Location: phils
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help on using curl

how to get the string with curl? can you give me a sample? because when i tried putting all things together:

ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, $xmyurl);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
ob_start();
curl_exec($ch);
$s=ob_get_contents();
.
.
.

i cant get the image. is there a way for me to do it with curl without using imagemagick. yes we do have gd and im applying it in creating the image on the fly.
Reply With Quote