Page 1 of 1

How can I get extra html header info

Posted: Sat Aug 30, 2003 10:01 pm
by zf1998
Hi,

I want to get the content of html header, for example in html header, there is a line: "X-Source-ID: 211.139.172.70"

I don't know how to get it. I tried "$_ENV, $HTTP_ENV_VARS["X-Source-ID"], but failed.

Anyone can help me?

Thanks.

Posted: Sun Aug 31, 2003 1:22 am
by JAM
I belive it's in $_SERVER.

Code: Select all

<pre>
<?php print_r($_SERVER); ?>
</pre>

thanks

Posted: Sun Aug 31, 2003 7:44 am
by zf1998
it works.

Thank u.