Cpanel error ? $ip changed ...

xirico

Registered
Oct 17, 2006
3
0
151
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
 

rsaylor

Well-Known Member
Mar 27, 2003
160
1
168
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.