APACHE_RESPONSE_HEADERS(3) 1 APACHE_RESPONSE_HEADERS(3)apache_response_headers - Fetch all HTTP response headersSYNOPSIS
array apache_response_headers (void )
DESCRIPTION
Fetch all HTTP response headers.
RETURN VALUES
An array of all Apache response headers on success or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.5.7 | |
| | |
| | This function became available in the CLI |
| | server. |
| | |
| 5.4.0 | |
| | |
| | This function became available under FastCGI. |
| | Previously, it was supported when PHP was |
| | installed as an Apache module or by the NSAPI |
| | server module in Netscape/iPlanet/SunONE web- |
| | servers. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
apache_response_headers(3) example
<?php
print_r(apache_response_headers());
?>
The above example will output something similar to:
Array
(
[Accept-Ranges] => bytes
[X-Powered-By] => PHP/4.3.8
)
SEE ALSO apache_request_headers(3), headers_sent(3), headers_list(3).
PHP Documentation Group APACHE_RESPONSE_HEADERS(3)
Check Out this Related Man Page
GETALLHEADERS(3) 1 GETALLHEADERS(3)getallheaders - Fetch all HTTP request headersSYNOPSIS
array getallheaders (void )
DESCRIPTION
Fetches all HTTP headers from the current request.
This function is an alias for apache_request_headers(3). Please read the apache_request_headers(3) documentation for more information on
how this function works.
RETURN VALUES
An associative array of all the HTTP headers in the current request, or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.5.7 | |
| | |
| | This function became available in the CLI |
| | server. |
| | |
| 5.4.0 | |
| | |
| | This function became available under FastCGI. |
| | Previously, it was supported when PHP was |
| | installed as an Apache module or by the NSAPI |
| | server module in Netscape/iPlanet/SunONE web- |
| | servers. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
getallheaders(3) example
<?php
foreach (getallheaders() as $name => $value) {
echo "$name: $value
";
}
?>
SEE ALSO apache_response_headers(3).
PHP Documentation Group GETALLHEADERS(3)
I am trying to write a korn shell script which posts commands to a server and read the response back from the server.
Any idea how I can read the servers response?
I have tried doing the following:
(
LOGIN:xxxxx
command to server
read ANSWER
echo $ANSWER >file1... (4 Replies)
I have done charts in PHP with following environment;
1) PHP 5.2.x
2) Webserver Apache 2.2.4 or higher
3) Perl 5.8.7
4) GD 2.0.1
5) JPgraph 2.1.1
It works fine in Windowx XP, Red hat linux 3.x.Now I need to move this PHP programs to AIX machine which has following environment:
PHP 4.0.6... (6 Replies)
Server: FreeBSD 7.2-Release
Previously I admin a website that uses IP.Board as a forum. It was on a FreeBSD server but there were some issues with some other people on the server so the whole server has been resetup. It is has been set up as a Unix Jail and I was given root access. Apache has... (3 Replies)
Hi everyone,
I need to update PHP from 5.2.6 to the latest version, and I can't build it properly. I just upgraded Apache to 2.2.17, and that is working fine, but when I build PHP, libphp5.so is not built and placed in the Apache modules folder.
I have stripped the ./configure command down to... (5 Replies)
Hello,
I'm trying to compile PHP 5.3.6 with Apache2 and MySql 5.5.12. I hit a problem that I can't seem to resolve by myself and I could not find a solution on the web.
It looks like Apache and MySql installed ok, I can start/stop them with no problem.
When I try to compile PHP the... (4 Replies)
I have a website and I am thinking of slowly making small mods to it and learn through tutorials along the way. To start using PHP where do I start?
Should I use dreamweaver? or do I need a PHP program that will allow me to access and edit the code? My websites programmed in cakephp. I want... (3 Replies)
Hi guys
I'm trying to configure a collaboration suit (PHP, PostgreSQL, Apache) plus a mail server(Sendmail and Dovecot) on a single box. It will be used heavily 24*7. So having a long up time is really needed. I'm looking for 3 to 6 month up time. I want to know about kernel update... (6 Replies)
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Hi,
I want to ask something about server that has been compromised. Recently, one of my VPS server has been hacked and the attacker install somekind like "IRC" script.
Everytime I killed the process or close the port, it can open again .. and again ..I'm sure the attacker has installed... (14 Replies)
I have a file called "dsout" with empty rows and duplicate headers.
DATE TIME TOTAL_GB USED_GB %USED
--------- -------- ---------- ---------- ----------
03/05/013 12:34 PM 3151.24316 2331.56653 73.988785 ... (3 Replies)
Say there is a certain path I wish to always load the same page. So if they go to somesite.com/a/b/c, it always goes to myscript.php and fed a/b/c as a server variable.
I'm fairly sure this is possible but cannot remember the term it's called, and so cannot find it in web searches or... (7 Replies)
I am currently trying to do a PHP script that detects automatically if Apache Splunk authentication is required or not but I'm having a hard time since HTTP code 303 is always coming back, even if auth is required or not.
Here is the script so far;
<?php
/**
* Apache Splunk script to... (4 Replies)
On Saturday May 4th the forums will briefly break when I switch our Apache PHP 5.6 module to PHP 7.0.
Previously, I had two sites set up for testing the migration, but for many reasons, the second site has additional issues unrelated to PHP 7.0 so it is hard to debug on a different site and... (3 Replies)