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

<?php

function broken()
{

  global $_SERVER['REMOTE_ADDR'];
}

in that case just remove it , it is autoglobal, no need to declare it as
global.

/me roll eyes.







Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to