Page 1 of 1

REMOTE_ADDR and root user questions.

Posted: Thu Dec 30, 2004 3:48 am
by Revan
Hi, I was curious, I've always used $REMOTE_ADDR, but is there any real difference with using $REMOTE_ADDR Vs. $HTTP_SERVER_VARS["REMOTE_ADDR"] ?

Also, is there anyway in PHP to change the scripts user ID too root, so I can make a script that edits a APF CONF, I'd prefer not to chown it to the scripts user ID.


Thanks.

Posted: Thu Dec 30, 2004 8:50 am
by feyd
with register_globals being on, $REMOTE_ADDR is $HTTP_SERVER_VARS['REMOTE_ADDR'] ... sounds like you are using a pretty old version of php... register_globals has been disabled for quite some time.