Closed Thread
Results 1 to 8 of 8

Thread: Php help?

  1. #1
    anatoly-usa57 is offline x10Hosting Member anatoly-usa57 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    6

    Php help?

    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

  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Php help?

    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.


  3. #3
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Php help?

    And for the record, safe_mode is already off in php.ini

  4. #4
    anatoly-usa57 is offline x10Hosting Member anatoly-usa57 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    6

    Re: Php help?

    Hello,
    What's wrong with my php script then? For example, try to submit
    domain.com|domainkeyword . It tells me safe_mode is on?

  5. #5
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Php help?

    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.


  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Php help?

    Post the full and complete error message.
    Nothing is always absolutely so.

  7. #7
    anatoly-usa57 is offline x10Hosting Member anatoly-usa57 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    6

    Re: Php help?

    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

  8. #8
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Php help?

    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 by Skizzerz; 06-08-2011 at 01:43 PM.

Closed Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers