output started at /home/p/pe/perphp/public_html/login.php:4 try to look into this line 'cause is where the output started.
The HTTP Header comes before every HTML code because it's where the browser will know what kind of file it is (for example... it is a image, open it! it is HTML, show it! it is a zip file, download it!), sends also the file size, date, etc etc.. so, every header() call must be before any ' echo ' , 'print' etc .. hope u understood ... i am taking english classes to improve my speech :P ----- Original Message ----- From: "Jon Haworth" <[EMAIL PROTECTED]> To: "'Per Waagen'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 8:26 AM Subject: RE: [PHP] Cannot add header information... > You've already sent something to the browser... the line that starts with > <HTML><HEAD>... > > Move that below the authentication code and all should be well. > > HTH > Jon > > > -----Original Message----- > From: Per Waagen [mailto:[EMAIL PROTECTED]] > Sent: 22 November 2001 10:20 > To: [EMAIL PROTECTED] > Subject: [PHP] Cannot add header information... > > > Need some help here, Im getting this error: > > Warning: Cannot add header information - headers already sent by (output > started at /home/p/pe/perphp/public_html/login.php:4) in > /home/p/pe/perphp/public_html/login.php on line 44 > > ...while trying to run the following .PHP code on my server. Any ideas why > this doesnt work? > (Im trying to setup user authentication and found this on the Webmonkey > site) > > All tips are appreciated!! > > > ********************************************************************** > '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' > > ********************************************************************** > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]