Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   what is Header() function in PHP? (http://www.go4expert.com/forums/header-function-php-t28424/)

ifuturz 21May2012 11:19

what is Header() function in PHP?
what is Header() function in PHP and For what is this function used in PHP language?

coderzone 21May2012 12:00

Re: what is Header() function in PHP?
Instead of posting this in forum you could have Just Googled it and you would see the first result as


Which explains everything about the header function in PHP

alia123 11Jan2016 14:12

Re: what is Header() function in PHP?
Hey,The header() function sends a raw HTTP header to a client.
It is important to notice that header() must be called before any actual output is sent

string -Required. Specifies the header string to send
replace- Optional. Indicates whether the header should replace previous or add a second header.
http_response_code -Optional.

arkasoftwares 27Jan2016 11:02

Re: what is Header() function in PHP?
PHP headers are bits of information that are sent to a computer before anything else, like a web page, is sent. They tell the computer the information it needs so that it can execute commands when the rest of the information is recieved. When you view a website in a browser, you will never see these headers. They come before the webpage and all the browser will display is the content of the web page. In a PHP document, a developer can change the headers that are sent to the browser. They must come before any of your other content on the page. You put them right before you declare the DOCTYPE with no space before the PHP tag.

joeykordahi22 5Apr2016 15:57

Re: what is Header() function in PHP?
Type your query in Google Search you'll get better results, don't post such meaningless questions for just link juice. Try to improve level of your question!!

All times are GMT +5.5. The time now is 02:21.