Web Hosting Talk







View Full Version : Standard env. variables for PHP


easypooltutor
03-20-2001, 04:19 PM
Hello web hosts, I am curious what are the standard environment variables available using PHP on most servers. For some reason, I can't seem to use REMOTE_ADDR with PHP on my current server. I have emailed support twice and they have not answered my questions. One thing I found about my current host is that they will help me ASAP IF what I ask is something they can do and if it's NOT they just ignore my emails... not even a reply saying they cannot provide what I requested :(

Anyway, I am wondering why some servers do not make REMOTE_ADDR available. I am assuming that it's not available and won't be available for me on my server because the support department has ignored my emails so far.

In case you are wondering why I use REMOTE_ADDR, I use it to log IP addresses on my bulletin board script (tforum). Obviously, it's not logging the IP address so I assume that REMOTE_ADDR is unavailable to me :)

Web hosts, please enlighten me on this matter. Thank you!

mybiz
03-20-2001, 04:25 PM
They need to compile PHP with Track Vars to get those env variables.

./configure --enable-track-vars

easypooltutor
03-20-2001, 04:45 PM
Originally posted by mybiz
They need to compile PHP with Track Vars to get those env variables.

./configure --enable-track-vars



Thanks for the reply. Now, is this difficult to do for web hosts? I am wondering why my host is not responding to my request to make these variables available to me.

AtlantaWebhost.com
03-20-2001, 07:44 PM
It is not really difficult, but I can understand them being cautious about recompiling the PHP software. Some companies use pre-built software and it may not have all of the options configured. I would suggest e-mailing them and suggest that they look into the benefits of allowing the options and if they think it could be beneficial to their clients, get their system admin to update PHP one evening.

Best regards,
Frank Rietta