getenv

getenv

getenv
=====

getenv
- It gets the value of an environment variable
Returns the value of the environment variable varname, or FALSE on an error.

Some of the Environment Variables are

REMOTE_ADDR,SCRIPT_NAME,REQUEST_URI,SERVER_PROTOCOL ,

REDIRECT_STATUS ,HTTP_ACCEPT

HTTP_ACCEPT_LANGUAGE,HTTP_ACCEPT_ENCODING ,
HTTP_USER_AGENT ,HTTP_HOST ,HTTP_CONNECTION
HTTP_COOKIE ,PATH ,COMSPEC ,PATHEXT ,WINDIR ,
SERVER_SIGNATURE ,SERVER_SOFTWARE ,SERVER_NAME
SERVER_ADDR ,SERVER_PORT ,REMOTE_ADDR ,
DOCUMENT_ROOT ,SERVER_ADMIN .

Syntax:
=====
string getenv ( string varname)

Example:
======


It Displays the IP Address of the User

.

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.