REMOTE_ADDR and root user questions.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Revan
Forum Commoner
Posts: 83
Joined: Fri Jul 02, 2004 12:37 am
Location: New Mexico, USA
Contact:

REMOTE_ADDR and root user questions.

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply