PHP header function

Use of header() function in php

Questions by rubin2008   answers by rubin2008

Showing Answers 1 - 12 of 12 Answers

SHiDi

  • May 9th, 2008
 

In commons, header() being used for page redirection, whereby a specific location being define. However header() can be use more than just that.

header() may also be use for page authentication, assigning content type, cache control, etc.

anees_muhd

  • Oct 23rd, 2008
 

The main use of header() is to send header information into client machine and its one of the use is Page redirect we have a lot of directives for this function for Eg. Location
If we use Location directive, the next parameter will be a location to redirect from that point. We can also specify the MIME type, Content type of the file and lot more using this function.

  Was this answer useful?  Yes

sandeshk

  • May 15th, 2009
 

The header() function sends a raw HTTP header to a client.
We can use herder() function for redirection of pages. It is important to notice that header() must be called before any actual output is seen.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions