icklechurch
09-15-2009, 09:52 AM
Hi,
Not sure if I should post this here or in the php forum.
Basically, I have the following asp script which is outputting all my server variables:
<%
dim ServerVariables
for each ServerVariables in Request.ServerVariables
if left(ServerVariables,5)="HTTP_" then
response.write "<tr><td>"&ServerVariables &"</td><td><B>"&URLDecode(Request.ServerVariables(ServerVariables))&"</b></td></tr>"
end if
next
%>
Which works fine. But when I try to output the server variables in php using this:
<?
foreach($_SERVER as $key_name => $key_value) {
print $key_name . " = " . $key_value . "<br>";
}
?>
All the server variables that appear in asp do not appear in php - does anyone know why this is or how to resolve this problem?
Not sure if I should post this here or in the php forum.
Basically, I have the following asp script which is outputting all my server variables:
<%
dim ServerVariables
for each ServerVariables in Request.ServerVariables
if left(ServerVariables,5)="HTTP_" then
response.write "<tr><td>"&ServerVariables &"</td><td><B>"&URLDecode(Request.ServerVariables(ServerVariables))&"</b></td></tr>"
end if
next
%>
Which works fine. But when I try to output the server variables in php using this:
<?
foreach($_SERVER as $key_name => $key_value) {
print $key_name . " = " . $key_value . "<br>";
}
?>
All the server variables that appear in asp do not appear in php - does anyone know why this is or how to resolve this problem?