RE: [PHP] Header() don't work
| From: | Jon Haworth | Date: | Tue, 16 Oct 2001 14:56:56 +0000 |
| Subject: | RE: [PHP] Header() don't work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71220@lists.php.net to get a copy of this message | ||
You've already output something. Can we see lib.inc please?
Cheers
Jon
-----Original Message-----
From: Web user [mailto:random11@telekbird.com.cn]
Sent: 16 October 2001 15:39
To: php-general@lists.php.net
Subject: [PHP] Header() don't work
I don't think there are any html output sent out before the header() in the
login.php, so the header() should redirect to other page.(of course, the
login name and
password are right.) But the IE shows error as below:
Warning: Cannot add header information - headers already sent by (output
started at c:\program files\apache group\apache\htdocs\web\lib.inc:18) in
c:\program files\apache group\apache\htdocs\web\login.php on line 18
The other question is can I put the session_start() after the line where the
login is ok; But if I do so, error showed:
Warning: Cannot send session cache limiter - headers already sent (output
started at c:\program
files\apache group\apache\htdocs\web\lib.inc:18) in c:\program files\apache
group\apache\htdocs\web\6.php on line 16
In brief, what I need is redirection by header() and the generating of a
session when after the login is ok.
Thanks
Mike
**********************************************************************
'The information included in this Email is of a confidential nature and is
intended only for the addressee. If you are not the intended addressee,
any disclosure, copying or distribution by you is prohibited and may be
unlawful. Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege or confidentiality'
**********************************************************************