Curl Safe Mode?

Status
Not open for further replies.

chewett

New Member
Messages
137
Reaction score
0
Points
0
I was using Curl and tried to enable redirects but get this error,

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in

Does this mean i cant use redirects in curl with X10? If so are there other alternatives?
 
Last edited:

chewett

New Member
Messages
137
Reaction score
0
Points
0
I know its a double post BUT

http://x10hosting.com/forums/free-hosting/118511-php-safe-mode.html

poems also had the same issue, But his topic was closed, and i cant find anything else about Curl.

also i find these topic who also had this error and it wasnt answered
http://x10hosting.com/forums/free-h...lowlocation-not-working-open_basedir-set.html
http://x10hosting.com/forums/free-hosting/114724-curl-problem.html
http://x10hosting.com/forums/free-hosting/103625-php-safe_mode.html - here it was just said for "security purposes"

There has been no definitive answer, and i think that a few people would like to know this, along with me ofc :D

any infomation you have will be greatly recieved,
Best regards
Chewett
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
it's more work, but you can manually redirect your script based on the presence of a Location: header (set curl to output headers as well). Keep doing that until you reach the final location
 

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
It is disabled on free hosting for obvious reasons, no more explanation should be needed.

If you need to redirect, simply use header("Location: ./folder/location.php");

(Closed)

Jake
 
Status
Not open for further replies.
Top