Welcome to WebmasterWorld Guest from 184.108.40.206
Cannot add header information - headers already sent by (output started at C:\sites\php\login.php:1)
as far as I'm aware I have'nt set any headers
(the very first code on the page)
if (($submit=='submit') && (($user!='') ¦¦ ($pass!='')))
require('user and password stuff.php');
$query="SELECT * FROM sometable WHERE username='$user' && password='$pass'";
setcookie( "pfinduser", "$user", mktime(0, 0, 0, 5, 14, 2036) );
setcookie( "pfindpass", "$pass", mktime(0, 0, 0, 5, 14, 2036) );
$log = "yes";
$log = "no";
$log2 = "fail";
$log = "no";
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.
Did you check that there are no blank lines anywhere?
Telnet to your script and youŽll see what its output is up until you get that error message.
I have fixed the problem, I had already cheacked for includes, blank lines etc a gazillion times.
I then copied all the text and pasted it into notepad and it works perfectly!
I no understandy, very bizarre I think somehow file was corrupted and inserting characters? thats the only thing I can think of anyway.