I have a script with the GETENV function, where i read some Environment Variables like REMOTE_ADDR.
It worked perfectly on IIS5.0 and php 4.3.2.
Now my friend, who is the owner of the server has upgraded to IIS6.0
and php 4.3.4. Since this I don't get any environment information.
The function GETENV delivers empty strings.
Any IDEAS and suggestions are very welcome...
Ewald, der.moderne.Schamane
http://www.schamane.cc
dermoderneschamane@yahoo.de
GETENV does not get any environment since upgrade...
Moderator: General Moderators
- derschamane
- Forum Newbie
- Posts: 6
- Joined: Fri Dec 27, 2002 1:44 pm
- Location: Austria
- Contact:
Not a solution but..
To be honest, i wouldn't use the GETENV function, i would get the environment variables using the $_SERVER varaible.
Mark
To be honest, i wouldn't use the GETENV function, i would get the environment variables using the $_SERVER varaible.
Code: Select all
$_SERVER["REMOTE_ADDR"]- derschamane
- Forum Newbie
- Posts: 6
- Joined: Fri Dec 27, 2002 1:44 pm
- Location: Austria
- Contact:
Does not help...
Thanks for the tipp, but as long as the SERVER does not deliver any Variables, $_SERVER does not work. As you said... not a solution...
ANYWAY, THANKS FOR YOUR FAST ANSWER,
Ewald
ANYWAY, THANKS FOR YOUR FAST ANSWER,
Ewald
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Always a plan to do:
when you change webserver to check on the variables you have access to and those that may no longer be available.
Mac
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';Mac
- derschamane
- Forum Newbie
- Posts: 6
- Joined: Fri Dec 27, 2002 1:44 pm
- Location: Austria
- Contact:
THANK YOU... $_SERVER works
I PROMISE, that next time, I first TRY, and then REPLY 
$_SERVER works perfect and delivers the information I need.
Thank you for your fast and helpful responses.
Regards
Ewald, derSchamane
http://www.schamane.cc
$_SERVER works perfect and delivers the information I need.
Thank you for your fast and helpful responses.
Regards
Ewald, derSchamane
http://www.schamane.cc