LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-07-2004, 10:48 AM   #1
artois_val
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
Accessing http header in PHP


That sound realy silly, but i can't access the http header sent by the user agent.

I tryed the $GLOBALS['HTTP_RAW_POST_DATA'] and the $HTTP_RAW_POST_DATA variable (after i turned on the setting in php.ini)

But when i try to echo or print_r it, it always print nothing ;-(

What is the easy way to see the full http header in php ?

Thanks
 
Old 08-07-2004, 11:20 AM   #2
Charalambos
Member
 
Registered: Aug 2004
Location: Switzerland
Distribution: debian
Posts: 149

Rep: Reputation: 15
The variable you're looking for ist $_SERVER.
It contains information such as information such as headers, paths, and script locations.
see http://ch.php.net/manual/en/reserved...riables.server for detailed information (such as the keynames of the array).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Header Script newuser455 Programming 1 08-30-2005 06:33 PM
Accessing FTP via. HTTP proxy? ben_hero Linux - Networking 2 03-02-2005 10:32 AM
forward IP based on http IP header freibuis Linux - Security 7 08-24-2004 01:21 AM
Errors on accessing Swat SAMBA http://localhost:901 @ Mandrake 9.0. Zepiroth Linux - Networking 2 06-03-2003 10:51 PM
Error reading WWW server response (HTTP Header)?? cuboctahedron Linux - Newbie 7 02-20-2003 05:10 AM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration