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
(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 output that I am logged in. However, an
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
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 this can be caused
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
Hi all,
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 /home/u/r/html/store/includes/functions/get_cartID.php
on line 14
I know that the
problem is the reading of the cookie and then after
Hi all,
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 /home/u/r/html/store/includes/functions/get_cartID.php on line 14
I know that the problem is the reading of the cookie
and then after
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
Im SO CLOSE!
Welll to start I had everything running FINE (MySQL, Apache, and PHP) until
I installed STUPID Zend Studio for PHP. After their 30 day trial expired, I
uninstalled it and everything just went downhill.
After re installing everything, I have these errors left over. Now the code
is
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
I'm doing a little form:
In the first page i have the form to insert datas,then redirect the
control to a script that check if the filds are correct.If they are
correct redirect the output to a prospect else to the first page.The
problem is that it gives an error like this
Warning: Cannot send
Im getting Warnings about headers being already sent. But not on my local
web server
Im sending the headers (to try and make the page not cache) before anything
is echoed to the browser.
I set the error reporting to E_ALL at the top of the script, turning error
reporting off suppresses the
Hi all,
I have a bit of a confusing one here. I have two enviroments:
1) Live server
-PHP Version 4.0.3pl1 - Nov 21 2000
-Apache/1.3.12 Cobalt (Unix)
-Linux
2) Local development
-PHP Version 4.0.6
-Apache/1.3.20 (Win32)
-Windows 2000 Pro
Now on the live server everything works fine but on my
]
Sent: Wednesday, August 29, 2001 12:50 PM
Subject: [PHP] Headers already sent
Hi all,
I have a bit of a confusing one here. I have two enviroments:
1) Live server
-PHP Version 4.0.3pl1 - Nov 21 2000
-Apache/1.3.12 Cobalt (Unix)
-Linux
2) Local development
-PHP Version 4.0.6
-Apache
Hi all,
I have a bit of a confusing one here. I have two enviroments:
1) Live server
-PHP Version 4.0.3pl1 - Nov 21 2000
-Apache/1.3.12 Cobalt (Unix)
-Linux
2) Local development
-PHP Version 4.0.6
-Apache/1.3.20 (Win32)
-Windows 2000 Pro
Now on the live server everything works fine but on my
3:20 PM
Subject: [PHP] Headers already sent
Hi all,
I have a bit of a confusing one here. I have two enviroments:
1) Live server
-PHP Version 4.0.3pl1 - Nov 21 2000
-Apache/1.3.12 Cobalt (Unix)
-Linux
2) Local development
-PHP Version 4.0.6
-Apache/1.3.20 (Win32)
-Wind
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
30 matches
Mail list logo