Php help?

Status
Not open for further replies.

anatoly-usa57

New Member
Messages
6
Reaction score
0
Points
0
Hello,
I'm trying to get my script to work, can you turn off safe_mode in php.ini? url: http://www.hostinga2z.com/free-back-links.php
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

php configuration is on a server-wide basis. It will not be adjusted for just one account. You'd need a VPS to decide on the settings for yourself.

Thanks.
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
And for the record, safe_mode is already off in php.ini
 

anatoly-usa57

New Member
Messages
6
Reaction score
0
Points
0
Hello,
What's wrong with my php script then? For example, try to submit
domain.com|domainkeyword . It tells me safe_mode is on?
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

It might help if you gave us a proper link to the script and a pastebin of the source. Also, I see you have a web hosting company website. What servers are you using for accounts?

Thanks.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Post the full and complete error message.
 

anatoly-usa57

New Member
Messages
6
Reaction score
0
Points
0
Hello,
For web hosting for now I'm just using affiliate links. Here is the link to the script:
http://www.hostinga2z.com/free-back-links.php

Basically, it creates back links for your domain.

Error:
Code:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/hostinga/public_html/free-back-links.php on line 107
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Find the line curl_setopt(CURLOPT_FOLLOWLOCATION, true); in your script and remove it, that will fix the error (seems to be line 107).

While safe_mode is off, open_basedir is ON and will remain on for security purposes (without it, people would be able to access the files in other people's accounts, not good)
 
Last edited:
Status
Not open for further replies.
Top