On Thursday, March 7, 2002, at 07:25 PM, Matthew Walker wrote:
> Do I have to place a session_start() function at the top of a page > (.php) before the <headers>? When they say that you need to put session_start() before the headers, they're referring to the HTTP headers, not the <head> tag of the HTML document. HTTP headers are information about the document that tell the client what to expect as it receives the document -- this helps the client decide how best to handle the document. For instance, your client (web browser) might be configured to print any text files directly to the screen, but any XML files need to be parsed properly before being printed. Or perhaps you're not even being sent a document, but rather an MP3 or a PDF. Your browser might want to know a bit about the file that it is being served, before it goes ahead and displays the data on the screen -- in the case of an MP3 or PDF, it might wish to open up Windows media Player or Quicktime or Adobe Acrobat as a helper application (assuming your browser has been programmed to do this). You can learn more about HTTP headers here: http://www.jmarshall.com/easy/http/ NB I haven't read it, I just googled that (but I think I will read it later). Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php