note 79591 added to function.getenv

From: Date: Tue, 04 Dec 2007 20:27:57 +0000
Subject: note 79591 added to function.getenv
Groups: php.notes 
Request: Send a blank email to php-notes+get-132809@lists.php.net to get a copy of this message
i had trouble getting ANY of these $_SERVER things to return the client IP. i kept getting the server IP. this is the ONLY thing i found that worked for me to get the client's IP address: $joe = apache_request_headers(); echo $joe['PC-Remote-Addr']; ---- Server IP: 208.69.120.35 Probable Submitter: 64.81.243.121 ---- Manual Page -- http://www.php.net/manual/en/function.getenv.php Edit -- https://master.php.net/note/edit/79591 Del: integrated -- https://master.php.net/note/delete/79591/integrated Del: useless -- https://master.php.net/note/delete/79591/useless Del: bad code -- https://master.php.net/note/delete/79591/bad+code Del: spam -- https://master.php.net/note/delete/79591/spam Del: non-english -- https://master.php.net/note/delete/79591/non-english Del: in docs -- https://master.php.net/note/delete/79591/in+docs Del: other reasons-- https://master.php.net/note/delete/79591 Reject -- https://master.php.net/note/reject/79591 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132809) next »