How to use HTTP Headers inside PHP? Write the statement through which it can be added?
Page 1 of 1
How to use HTTP Headers inside PHP? Write the statement through which it can be added?
HTTP headers can be used in PHP by redirection which is written as:
<?header('Location: http://www.php.net')?>
The headers can be added to HTTP response in PHP using the header(). The response headers are sent before any actual response being sent. The HTTP headers have to be sent before taking the output of any data. The statement above gets included at the top of the script.
Similar topics
» Write a statement to show the joining of multiple comparisons in PHP?
» How PHP statement is different from PHP script?
» What are the ways to comment statement in C++?
» Echo vs. print statement.
» Write a Hello world program using variable?
» How PHP statement is different from PHP script?
» What are the ways to comment statement in C++?
» Echo vs. print statement.
» Write a Hello world program using variable?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum