The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel error ? $ip changed ...

Discussion in 'General Discussion' started by xirico, Oct 23, 2006.

  1. xirico

    xirico Registered

    Joined:
    Oct 17, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Portugal
    I work for a long time with Cpanel. I love it.
    Last September I notice my host ( http://www.ultrasurge.com/ ) for a bug:
    -------------------------

    Since last September, when I save in Cpanel, any file xxxxx.php with the variable $ip, the first occur of this variable is changed to "70.84.255.34" (host's ip).

    =====>IN EDIT MODE
    <?php
    // The first occurs of "$ i p" is changed to 70.84.255.34 !!!! in the moment I save this file
    $ip='888';
    echo "=> $ip";
    $ip="34.34.34.23";
    ?>

    ----- after SAVED, do not work because....

    <?php
    // The first occurs of "$ i p" is changed to 70.84.255.34 !!!! in the moment I save this file

    70.84.255.34='888';
    echo "=> $ip";
    $ip="34.34.34.23";
    ?>


    --------------------------------------------

    This is the answer of the Host (https://www.getsomesupport.com/):


    Technical Support
    10-10-2006-6:30

    the file manager provided by cpanel has problems. we are not the creators of that script in cpanel and cannot fix it. don't use cpanel to edit the file. download the file using an ftp application. edit it. upload the file using the ftp application.


    I can´t believe in that. The variable $ip is one of the most used in programs PHP, and others Cpanel users do not live with this! Tell me your opinion, please.

    Thanks for your answer
    Jorge
     
  2. rsaylor

    rsaylor Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    160
    Likes Received:
    1
    Trophy Points:
    18
    change your varable. This is a 5 sec fix that you are trying to turn into a 2 month fix. Simple answer is to fix your varable. cPanel can come back stating that is a reserved varable in cpanel.
     
Loading...

Share This Page