GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Programming  >  PHP
Go To First  |  Previous Question  |  Next Question 
 PHP  |  Question 54 of 62    Print  
PHP header function
use of header() function in php


  
Total Answers and Comments: 3 Last Update: October 24, 2008     Asked by: rubin2008 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 09, 2008 04:23:54   #1  
SHiDi Member Since: October 2007   Contribution: 1    

RE: PHP header function
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.

 
Is this answer useful? Yes | No
July 28, 2008 03:29:29   #2  
akhilesh1010 Member Since: July 2008   Contribution: 4    

RE: PHP header function
we can use this function for redirect

header("location:page.php");

 
Is this answer useful? Yes | No
October 23, 2008 23:52:08   #3  
anees_muhd Member Since: October 2008   Contribution: 1    

RE: PHP header function
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.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape