Thanks. That was the problem. I spent a day trying to debug this.
Smash head against wall first, ask questions later. That's my
methodology as well. :)
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Perhaps your server is configured to have output buffering enabled by
default? Check php.ini / phpinfo().
--Larry Garfield
On 11/11/2011 12:12 AM, Kranthi Krishna wrote:
Hi all,
I am missing something pretty obvious here. The PHP Manual says
Remember that header() must be called before any
Hi,
Perhaps your server is configured to have output buffering enabled by default
Thanks. That was the problem. I spent a day trying to debug this.
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 10:30 PM 04/07/2006, you wrote:
Comment inline:
Thanks, I just found that out after, well I don't want to say how
long it took smile.
Is that just the way things are in PHP or is there a command /
configuration to make something like this more obvious? Hmmm.
maybe the IDE I'm
There is no real way of knowing if output is going to be sent before a
header or not, unless its a very simple page.
Your best bet is to investigate the output buffering functions here:
http://www.php.net/manual/en/ref.outcontrol.php
HTH
Steve
P. Guethlein [EMAIL PROTECTED] wrote in message
Comment inline:
P. Guethlein wrote:
(Know enough to be dangerous beginner...)
Routine for a web login asked user name and password.
User Name is entered correctly.
Password is Incorrect.
Next Try.
User Name is enter correctly.
Password is Entered Correctly.
PHP notifies me on the html
Pls Make sure that outside your ?php and ? tags, these is no any
blankspace or sth else.
Best regards,
Yang Shiqi
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 3:44 PM
To: [php] PHP General List
Subject: Re: [PHP] Headers already sent
On Thu, 2005-02-03 at 12:59 +1030, Tim Burgan wrote:
Hello,
I'm receiving an error Cannot modify header information - headers
already sent by XXX.
In my php, I have a heap of code, then use header(Location: blah.php);
to redirect the user. I get this error on the webhost, but not on
Tim Burgan wrote:
Hello,
I'm receiving an error Cannot modify header information - headers
already sent by XXX.
In my php, I have a heap of code, then use header(Location:
blah.php); to redirect the user. I get this error on the webhost, but
not on my local host.
I've searched and found that
-Original Message-
From: frederik feys
To: 'Ford, Mike [LSS]'; [EMAIL PROTECTED]
Here's the URL:
http://www.aurelis.org/store/cart.txt
and the get_cartID:
http://www.aurelis.org/store/includes/functions/get_cartID.txt
--
I've only had time for a
To: 'frederik feys '; '[EMAIL PROTECTED] '
Subject: RE: [PHP] headers already sent and cookie problem
-Original Message-
From: frederik feys
To: 'Ford, Mike [LSS]'; [EMAIL PROTECTED]
Here's the URL:
http://www.aurelis.org/store/cart.txt
and the get_cartID:
http://www.aurelis.org
To: 'frederik feys'; [EMAIL PROTECTED]
Subject: RE: [PHP] headers already sent and cookie problem
-Original Message-
From: frederik feys [mailto:[EMAIL PROTECTED]
Sent: 16 July 2003 10:21
One nasty thing to debug is that the error only shows up from time to
time.
So now everything seems
for that. But I still don't have the clue.
Maybe you like to see my code?
Any help welcome!
Fred
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: dinsdag 15 juli 2003 11:36
To: 'frederik feys'; [EMAIL PROTECTED]
Subject: RE: [PHP] headers already sent and cookie
-Original Message-
From: frederik feys [mailto:[EMAIL PROTECTED]
Sent: 16 July 2003 10:21
One nasty thing to debug is that the error only shows up from time to
time.
So now everything seems OK.
What do i have now?
I start my code with session_start
Then include some files. The
You cannot send any page information before you send headers (ie setting a
cookie), that means there should be no html before the php that sets the
cookie, also any function that are called before you set the cookie cannot
output to the browser.
Ry
On 15/7/03 9:45 am, frederik feys [EMAIL
-Original Message-
From: frederik feys [mailto:[EMAIL PROTECTED]
Sent: 15 July 2003 09:45
This is what i get:
Warning: Cannot add header information - headers already
sent by (output started at /home/u/r/html/store/cart.php:188)
in
http://www.php.net/manual/en/faq.using.php#faq.using.headers-sent
Justin Garrett
Chris Winters [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Im SO CLOSE!
Welll to start I had everything running FINE (MySQL, Apache, and PHP)
until
I installed STUPID Zend
See if there is any symbol before ?php open tag.
Also this seems bad :
$uid=$HTTP_SESSION_VARS[userid];
may be:
$uid=$HTTP_SESSION_VARS[userid];
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: Nic Skitt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sagar,
Thanks but there isnt any spaces or HTML. The code on the page starts with
the PHP tags and nothing else.
Nic
Sagar [EMAIL PROTECTED] wrote in message
00c001c13141$cd995d60$5bed7ccb@ravella">news:00c001c13141$cd995d60$5bed7ccb@ravella...
This will not work even if the code is like this
Thanks Andrey but that still hasnt fixed it.
The full error I am getting is:
Cannot add header information - headers already sent by (output started at
c:\apache\apache\htdocs\client-secure.php:11) in
c:\apache\apache\htdocs\client-secure.php on line 18
Line 11 refers to:
On 30-Aug-2001 Nic Skitt wrote:
Thanks Andrey but that still hasnt fixed it.
The full error I am getting is:
Cannot add header information - headers already sent by (output started at
c:\apache\apache\htdocs\client-secure.php:11) in
c:\apache\apache\htdocs\client-secure.php on line 18
21 matches
Mail list logo