08-04-2009, 11:40 AM
|
#11 (permalink)
|
|
The Contributor
Join Date: Jul 2009
Posts: 80
Thanks: 13
|
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.
|
|
|
|