How can I get extra html header info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zf1998
Forum Newbie
Posts: 2
Joined: Sat Aug 30, 2003 10:01 pm

How can I get extra html header info

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I belive it's in $_SERVER.

Code: Select all

<pre>
<?php print_r($_SERVER); ?>
</pre>
zf1998
Forum Newbie
Posts: 2
Joined: Sat Aug 30, 2003 10:01 pm

thanks

Post by zf1998 »

it works.

Thank u.
Post Reply