06-03-2008
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All
My first post so I hope it's ok.
I have VMware workstation 5.0.0 build-13124 on an XP professional box. Within the VMware environment I have two virtual systems. The first is a Red Hat Linux (3.2.2-5) box and the second is an XP Home (sp2) box. When setting up both virtual boxes I set... (1 Reply)
Discussion started by: The_Lo_King
1 Replies
2. Red Hat
I'm running redhat linux: 2.6.18-128.1.6.el5xen #1 SMP Tue Mar 24 12:28:27 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux as my Dom0.
I have several other DomU's running on this system, but for this test I've shut them down.
I'm attempting to boot winXP from an image.
Here is my config file:
#... (3 Replies)
Discussion started by: willjw1
3 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I Have Installed Red Hat Linux 5 (Guest) In VMWARE And Host Is Windows
The Screen Resolution Of Linux Is Less And How To Increase Resolution ,
When I Am Trying To Install VMWARE Tool It's Just Showing The Below Message
Installing the VMware Tools package will greatly... (4 Replies)
Discussion started by: anudeepkumar123
4 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have installed Redhat Linux 5 in VMWARE and would need to access through putty form the same desktop or... (2 Replies)
Discussion started by: SasiWipro
2 Replies
5. Virtualization and Cloud Computing
I have installed Redhat Linux 5 in VMWARE and would need to access through putty form the same desktop or other desktop, Please help me what are the config setting needs to be modified
We could connect through Router (Wifi) or network, also Without network since the server hosted on same... (0 Replies)
Discussion started by: SasiWipro
0 Replies
6. Emergency UNIX and Linux Support
Hi All,
I installed Red-hat linux(64bit-x86) os on vmware 8,configure IP address and services but it is unable to come in to network.it is production server.
please provide solution to me , it is very urgent... (3 Replies)
Discussion started by: Rajesh_Apple
3 Replies
7. Red Hat
I'm using redhat 5.1 installed on VMware work station9. Can you guys help me to
configure redhat clusters. (1 Reply)
Discussion started by: karthik9358
1 Replies
8. Red Hat
I have Dell laptop having windows 8
vmware workstation 9
redhat 7.2
After installation it only get me into text mode instead f GUI
Please help (4 Replies)
Discussion started by: hananabbas
4 Replies
LEARN ABOUT PHP
get_headers
GET_HEADERS(3) 1 GET_HEADERS(3)
get_headers - Fetches all the headers sent by the server in response to a HTTP request
SYNOPSIS
array get_headers (string $url, [int $format])
DESCRIPTION
get_headers(3) returns an array with the headers sent by the server in response to a HTTP request.
PARAMETERS
o $url
- The target URL.
o $format
- If the optional $format parameter is set to non-zero, get_headers(3) parses the response and sets the array's keys.
RETURN VALUES
Returns an indexed or associative array with the headers, or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.1.3 | |
| | |
| | This function now uses the default stream con- |
| | text, which can be set/changed with the |
| | stream_context_set_default(3) function. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
get_headers(3) example
<?php
$url = 'http://www.example.com';
print_r(get_headers($url));
print_r(get_headers($url, 1));
?>
The above example will output something similar to:
Array
(
[0] => HTTP/1.1 200 OK
[1] => Date: Sat, 29 May 2004 12:28:13 GMT
[2] => Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)
[3] => Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
[4] => ETag: "3f80f-1b6-3e1cb03b"
[5] => Accept-Ranges: bytes
[6] => Content-Length: 438
[7] => Connection: close
[8] => Content-Type: text/html
)
Array
(
[0] => HTTP/1.1 200 OK
[Date] => Sat, 29 May 2004 12:28:14 GMT
[Server] => Apache/1.3.27 (Unix) (Red-Hat/Linux)
[Last-Modified] => Wed, 08 Jan 2003 23:11:55 GMT
[ETag] => "3f80f-1b6-3e1cb03b"
[Accept-Ranges] => bytes
[Content-Length] => 438
[Connection] => close
[Content-Type] => text/html
)
Example #2
get_headers(3) using HEAD example
<?php
// By default get_headers uses a GET request to fetch the headers. If you
// want to send a HEAD request instead, you can do so using a stream context:
stream_context_set_default(
array(
'http' => array(
'method' => 'HEAD'
)
)
);
$headers = get_headers('http://example.com');
?>
SEE ALSO
apache_request_headers(3).
PHP Documentation Group GET_HEADERS(3)