Hi all.. My new host will not allow this php command to work: $cur_ip = $REMOTE_ADDR; Any ideas how I can program around this? Thanks, JIM -- Jim Hatridge Linux User #88484 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Hatridge skrev:
Hi all..
My new host will not allow this php command to work:
$cur_ip = $REMOTE_ADDR;
Any ideas how I can program around this?
Thanks,
JIM
Hiya. Try the "new" way.. $cur_ip = $_SERVER['REMOTE_ADDR']; See http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve... -- Anders Norrbring Norrbring Consulting
On Sunday 14 January 2007 19:49, James Hatridge wrote:
Hi all..
My new host will not allow this php command to work:
$cur_ip = $REMOTE_ADDR;
Any ideas how I can program around this?
Probably best to try a PHP forum regards ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Hatridge escribió:
Hi all..
My new host will not allow this php command to work:
$cur_ip = $REMOTE_ADDR;
Any ideas how I can program around this?
Thanks,
JIM
This is legacy syntax that wont work since quite **a lot** of time . you need to replace that for $_SERVER['REMOTE_ADDR']. you may get a parser error or problems with this
participants (4)
-
Anders Norrbring
-
Cristian Rodriguez R.
-
ianseeks
-
James Hatridge