This is not correct.
Both the setcookie() and header() functions manipulate the HTTP headers
in the response. You cannot have output prior to any function that
manipulates headers - that's the limitation. These two functions work
fine together in any order; it's prior output that will cause an
It's giving you this error because you are sending the headers after
outputting something (which could be just a blank line) - check in your
functions.php that you dont have any blank lines before the start of or
after the end of your script. ie. before the ?php or after the ?
Debbie
-
I´ll do that...I hope thats the problemthanks a LOT!
Debbie_dyer [EMAIL PROTECTED] skrev i meddelandet
00d601c266fe$2f4d32f0$0100a8c0@homepc">news:00d601c266fe$2f4d32f0$0100a8c0@homepc...
It's giving you this error because you are sending the headers after
outputting something (which could
After lots of trial and error I traced the problem back to a missing
browscap.ini, I commented out that line in php.ini and it worked
fine. I guess it was causing php to think the it wasn't dealing with
a browser so it sent the headers differently (or something)
thanks to everyone.
- Mark
--
#!/usr/local/bin/php -q
on 1/10/02 12:16 PM, Mark at [EMAIL PROTECTED] wrote:
I've got this problem that won't go away.
The headers are showing up at the top of the page when I run php in
cgi mode. any ideas?
-- mike cullerton
--
PHP General Mailing List (http://www.php.net/)
To
what does your code look like?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 1:17 PM
To: PHP
Subject: [PHP] headers showing up in browser
I've got this problem that won't go away.
The headers are showing up at the top of the page when I run
On Thu, 10 Jan 2002 12:53:33 -0700, mike cullerton wrote:
#!/usr/local/bin/php -q
I don't think you understood what I meant. I want the headers to get
sent, but they're showing up in the browser as part of the page
content.
I had this working before on a different machine where everything to
do
lets say I have a page that contains just this code:
?
header(Location: /myfile.html);
?
the output I get is:
Location: /myfile.html Content-type: text/html
- Mark
On Thu, 10 Jan 2002 14:03:26 -0600, Rick Emery wrote:
what does your code look like?
-Original Message-
From: Mark
I'm a newbie but how about:
header(location: http://www.xxx.yyy/somepage.php?var1=$var1)
and so on.
And location: needs a space after it!
George
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP
that's more like a GET method. I prefer the POST method in my case
(GPC-order).
But thx for the input!
- Original Message -
From: George Pitcher [EMAIL PROTECTED]
To: Wilbert Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 1:18 PM
Subject: Re: [PHP
http://www.w3.org/Protocols/rfc2616/rfc2616.txt can help, IMHO
M.N.
atleast, I think, you must somehow announce , that you are using POST method
...?
--
Wilbert Enserink wrote:
Hi all,
my q: The results of a form are being POSTed to a php script. There I play
around with the inputted
Try this ...
http://lwest.free.fr/doc/php/lib/index.php3?page=net_http_clientlang=en
- complete HTTP class
M.N.
--
Wilbert Enserink wrote:
Hi all,
my q: The results of a form are being POSTed to a php script. There I play
around with the inputted variables. Now I want to post them again to
Try this:
http://phpclasses.upperdesign.com/browse.html/package/375
It let's you easily post an array of variables to another page.
To do it manually take a look at the function fsockopen().
If you have the need for a modified variant which is able to handle multiple
identically named fields
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:
Nic Skitt wrote:
Hi all,
I am constantly getting Headers already sent errors.
What I dont understand is why when I read something that could have come
from a cookie or session does that right out to headers.
eg:
if (!$HTTP_COOKIE_VARS[TrackID]){
}
The header error refers to this line as
I cant see any. Again this seems to be a difference between my dev server
and the live server. The live server doesnt compain.
Any more ideas?
NIc
Franklin Van Velthuizen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Nic Skitt wrote:
Hi all,
I am
At 17:18 30/08/01 +0100, Nic Skitt wrote:
I cant see any. Again this seems to be a difference between my dev server
and the live server. The live server doesnt compain.
That's the best way round, at least :-)
Have you also checked any included/required files for extra lines (after
the final
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
: July 26, 2001 12:32 PM
To: Richard Baskett; PHP General
Subject: Re: [PHP] Headers
On Wednesday 25 July 2001 15:24, Richard Baskett wrote:
What does the header look like when you submit a form using the POST
method? I would like to transfer some php variables to another page
using the header
Short answer: no.
If you can't just put your error information before you write information to
the screen you will need to use the ob_* family of functions. Clean the
information you've printed so far, then just print out the error information
to the screen.
--
Plutarck
Should be working on
On Thu, 5 Apr 2001 13:29, Nikolai Vladychevski wrote:
Hi,
i got this problem, when I use an executable to produce the output for
the html php sends headers screwing it all. For example, my script is
like this:
?
.
some stuff in php using database to prepare tempfile
If your program does not explicitly set the content type header, then I
believe it is Apache which will send it automatically. So that may be part
of your problem.
--
Plutarck
Should be working on something...
...but forgot what it was.
"Nikolai Vladychevski" [EMAIL PROTECTED] wrote in message
Clayton,
PHP has a function for that:
headers_sent
(PHP 3= 3.0.8, PHP 4 = 4.0b2)
headers_sent -- Returns true if headers have been sent
Description
boolean headers_sent (void)
This function returns true if the HTTP headers have already been sent, false otherwise.
See also header()
Cheers,
ROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 8:55 AM
Subject: Re: [PHP] Headers
Clayton,
PHP has a function for that:
headers_sent
(PHP 3= 3.0.8, PHP 4 = 4.0b2)
headers_sent -- Returns true if headers have been sent
Description
boolean headers_sent (void)
This f
How do I do something like:
if headers_sent=false
include header.inc
if (headers_sent() == false)include 'header.inc';
be sure and check the manual to make sure that "header_sent()" is the
correct format.
Brett
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Thanks :-)
Clayton Dukes
- Original Message -
From: "Brett" [EMAIL PROTECTED]
To: "PHP" [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 9:17 AM
Subject: Re: [PHP] Headers
How do I do something like:
if headers_sent=false
include header.inc
if (hea
101 - 128 of 128 matches
Mail list logo