View Single Post
Old 08-04-2009, 11:40 AM   #11 (permalink)
russellharrower
The Contributor
 
russellharrower's Avatar
 
Join Date: Jul 2009
Posts: 80
Thanks: 13
russellharrower is on a distinguished road
Default

New CODE:

I have come up with a way to post the information
Code:
foreach($pImgs as $pImg)
{
 $imageq = $pImg->getAttribute('src');
 
 $Curl_Session = curl_init('http://www.example.com/cache7/image.php');
 curl_setopt ($Curl_Session, CURLOPT_POST, 1);
 curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, "imageq=$imageq");
 curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
 curl_exec ($Curl_Session);
 curl_close ($Curl_Session);
}
however I am getting this error

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/example/public_html/image/index.php on line 49

what is this and how do I fix this?

Thanks

Last edited by russellharrower : 08-04-2009 at 12:56 PM.
russellharrower is offline  
Reply With Quote