Unix and Linux Discussions Tagged with header |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
6,016 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
6,637 |
Web Development |
|
|
|
2 |
3,167 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
8,217 |
Shell Programming and Scripting |
|
|
|
4 |
1,244 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,135 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,956 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,381 |
Shell Programming and Scripting |
|
|
|
3 |
2,592 |
Programming |
|
|
|
5 |
2,733 |
Shell Programming and Scripting |
|
|
|
0 |
2,282 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,666 |
Shell Programming and Scripting |
|
|
|
8 |
2,935 |
Shell Programming and Scripting |
|
|
|
2 |
7,757 |
Shell Programming and Scripting |
|
|
|
2 |
4,956 |
Shell Programming and Scripting |
|
|
|
4 |
6,749 |
Shell Programming and Scripting |
|
|
|
11 |
27,933 |
Shell Programming and Scripting |
|
|
|
2 |
2,142 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,614 |
Shell Programming and Scripting |
|
|
|
1 |
8,070 |
Shell Programming and Scripting |
|
|
|
4 |
5,353 |
Shell Programming and Scripting |
|
|
|
2 |
3,176 |
Programming |
|
|
|
9 |
18,237 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
11,967 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,196 |
Programming |
|
|
|
1 |
2,876 |
IP Networking |
|
|
|
7 |
4,789 |
Shell Programming and Scripting |
|
|
|
6 |
8,375 |
Shell Programming and Scripting |
|
|
|
4 |
4,346 |
Shell Programming and Scripting |
|
|
|
1 |
4,660 |
Shell Programming and Scripting |
|
|
|
1 |
2,681 |
Shell Programming and Scripting |
|
|
|
3 |
4,718 |
Shell Programming and Scripting |
|
|
|
2 |
10,649 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,941 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
10,622 |
Programming |
|
|
|
4 |
6,158 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
9,524 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,394 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,726 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,217 |
Programming |
HEADER_REMOVE(3) 1 HEADER_REMOVE(3)
header_remove - Remove previously set headers
SYNOPSIS
void header_remove ([string $name])
DESCRIPTION
Removes an HTTP header previously set using header(3).
PARAMETERS
o $name
- The header name to be removed.
Note
This parameter is case-insensitive.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
Unsetting specific header.
<?php
header("X-Foo: Bar");
header("X-Bar: Baz");
header_remove("X-Foo");
?>
The above example will output something similar to:
X-Bar: Baz
Example #2
Unsetting all previously set headers.
<?php
header("X-Foo: Bar");
header("X-Bar: Baz");
header_remove();
?>
The above example will output something similar to:
NOTES
Caution
This function will remove all headers set by PHP, including cookies, session and the X-Powered-By headers.
Note
Headers will only be accessible and output when a SAPI that supports them is in use.
SEE ALSO
header(3), headers_sent(3).
PHP Documentation Group HEADER_REMOVE(3)