I know I can write it to an open file using curl_setopt ($ch, CURLOPT_FILE, $fp);
but can I store it in a string instead?
I've tried this, bit it didn't work....
<?php
$url = "http://admin.buysub.com/servlet/ASGateway";
$url .= "?submit=Send";
$out = tmpfile();
$ch = curl_init();
curl_setopt($ch, CURL_URL, $url);
curl_setopt($ch, CURLOPT_FILE, $out);
curl_exec($ch);
curl_close($ch);
echo $url.'<br />';
echo $ch.'<br />';
rewind($out);
$contents = fread($out, filesize($out));
echo $contents;
fclose($contents);
?>
$contents should be 40....
any ideas?