RE: [PHP-DB] losing MySQL resource

[email protected] ("Ford, Mike")
Newsgroups php.db
Message-ID <93ED589E60BA254F97435FE6C97F2C6708CFD411@leedsmet-exch1.leedsmet.ac.uk>
> -----Original Message-----
> From: Nehemias Duarte [mailto:[email protected]]
> Sent: 11 November 2009 14:25
> To: Stan; [email protected]
> Subject: RE: [PHP-DB] losing MySQL resource
> 
> I was under the impression that session_start() had to be the FIRST
> thing ran in the script. Is this incorrect?

Yes.

It has to be before any actual *output*, but it would be perfectly valid to have umpteen thousand lines of PHP before session_start() so long as all the output came after it.

Cheers!

Mike

 -- 
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Leeds Metropolitan University, C507, Civic Quarter Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom 
Email: [email protected] 
Tel: +44 113 812 4730






To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.