Re: [PHP] PHP Header issue

2009-09-18 Thread Andrew Ballard
On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error.

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Ernie Kemp wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error. Warning: Cannot modify header information

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
http://us3.php.net/manual/en/function.header.php Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4438 (20090918) __ The message was checked by ESET Smart Security. http://www.eset.com --

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
: [PHP] PHP Header issue On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
I'm bewildered, bemused, astonished and am trying really hard not to lash out Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4438 (20090918) __ The message was checked by ESET Smart

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
:44 PM To: Ernie Kemp Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Header issue On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Jim Lucas wrote: Ernie Kemp wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error. Warning: Cannot modify header

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
if ... you have output_buffering option enabled in the php configuration. Which is probably the case on the OP's local machine, and would explain why the code doesn't fail for him there. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
: September-18-09 1:41 PM To: Jim Lucas Cc: Ernie Kemp; php-general@lists.php.net Subject: Re: [PHP] PHP Header issue if ... you have output_buffering option enabled in the php configuration. Which is probably the case on the OP's local machine, and would explain why the code doesn't fail for him

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
-Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, September 18, 2009 1:33 PM To: Ernie Kemp Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Header issue Jim Lucas wrote: Ernie Kemp wrote: html head titleContact Us/title /head

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
: HallMarc Websites [mailto:m...@hallmarcwebsites.com] Sent: September-18-09 2:00 PM To: 'Jim Lucas'; 'Ernie Kemp' Cc: php-general@lists.php.net Subject: RE: [PHP] PHP Header issue -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, September 18, 2009 1:33 PM

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
+++ -Original Message- From: HallMarc Websites [mailto:m...@hallmarcwebsites.com] Sent: September-18-09 2:00 PM To: 'Jim Lucas'; 'Ernie Kemp' Cc: php-general@lists.php.net Subject: RE: [PHP] PHP Header issue -Original Message- From: Jim Lucas

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Friday, September 18, 2009 2:31 PM To: Ernie Kemp Cc: 'HallMarc Websites'; 'Jim Lucas'; php-general@lists.php.net Subject: RE: [PHP] PHP Header issue On Fri, 2009-09-18 at 14:26 -0400, Ernie Kemp

Re: [PHP] PHP Header issue

2009-09-18 Thread Angus Mann
Your code does not make sense (to me anyway). It flags an error because you are sending HTML before the header command. Don't bother looking for whitespace etc...the htmlheadtitle etc is more than enough to produce this error. Using Location redirects to another URL. It does not make sense to