Jump to content

Environment variables


shamsuljewel

Recommended Posts

hello dears,

There are many HTTP environment variables.

such as REMOTE_ADDR which show the ip address.

but in my program when I use phpinfo()

it shows REMOTE_ADDR. But when I write programs

such as <?php $address = getenv("REMOTE_ADDR"); echo "$address"; ?>

 

the browser do not shows the ip address.

Where is the problem?

can anyone tell me where is the problem?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/58670-environment-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.