header (location: .php); does not work
Posted by: Ichi-TEK (---.29.233.220.exetel.com.au)
Date: June 19, 2006 11:57AM

Well I ONLY get this problem on WAMP and not on computers that have apache/PHP and MySQL installed seperately any reasons why?

Options: ReplyQuote
Re: header (location: .php); does not work
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: June 19, 2006 12:55PM

header(Location: ...)

with a capital L



Romain

Options: ReplyQuote
Re: header (location: .php); does not work
Posted by: Ichi-TEK (---.29.233.220.exetel.com.au)
Date: June 19, 2006 01:48PM

ok that still does not work
I get
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\lib\general\includes\header.php:11) in C:\wamp\www\lib\general\logout.php on line 9

Options: ReplyQuote
Re: header (location: .php); does not work
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: June 19, 2006 02:41PM

Becuase you outputed something before doind the header();

See the header function in the php doc, you'll get all descriptions (clane your ouptupt before header or use the outpubuffer of php)



Romain

Options: ReplyQuote
Re: header (location: .php); does not work
Posted by: k776 (---.bliink.ihug.co.nz)
Date: June 20, 2006 06:30AM

Also, I'm sure it needs " before and after the location text:

header("Location: index.php"winking smiley;

Options: ReplyQuote


Sorry, only registered users may post in this forum.