This has been solved today. Talawa had a similar problem and came up
with a solution to his problem, namely using session_write_close()
before creating the headers. That stunt also solved my problem :-)
--
Kind regards
Kim Emax
Kim Madsen wrote on 2009-10-03 13:30:
Hi PHP people
I have a rea
Andrea Giammarchi wrote on 2009-10-05 18:26:
> There's a useful function called headers_sent() which checks to see if
> the headers have already been sent to the browser. This might be a good
> place to throw into your code at various points to check and see if
> something is being written w
> There's a useful function called headers_sent() which checks to see if
> the headers have already been sent to the browser. This might be a good
> place to throw into your code at various points to check and see if
> something is being written which you don't expect.
true, check that as well,
> Sorry, the .phps file wasn't updated, but the page still works as
> expected even though I've printed stuff after the header (i tested that
> just for fun).
I already said magic behavior are not part of my developed code, unrelated
output is an error, even if the download work, it is an err
ude "inc/functions.inc";
>include "inc/default_functions.inc";
>
> As you said earlier, spaces could do wierd stuff to a header
>
> Also switching between utf-8 and latin-1 character sets can make php
> choke, I've experienced that before with sess
make php
choke, I've experienced that before with sessions.
Kind regards
Kim
> Date: Sun, 4 Oct 2009 19:09:35 +0200
> From: php@emax.dk
> To: php-general@lists.php.net
> Subject: Re: [PHP] Header problem
>
> Hello Andrea
>
> Andrea Giammarchi wrote
Original Message
> From: Kim Madsen
> To: php-general@lists.php.net
> Sent: Sun, October 4, 2009 9:10:36 AM
> Subject: Re: [PHP] Header problem
>
> Hi kranthi
>
> kranthi wrote on 2009-10-03 16:21:
> > Thats a lot of headers to read..
> > At a fir
quot;links" at the end of the
page ...
Regards
> Date: Sun, 4 Oct 2009 19:09:35 +0200
> From: php@emax.dk
> To: php-general@lists.php.net
> Subject: Re: [PHP] Header problem
>
> Hello Andrea
>
> Andrea Giammarchi wrote on 2009-10-04 18:49:
> >
> > &
Hello Andrea
Andrea Giammarchi wrote on 2009-10-04 18:49:
> Header must come first (before you output anything) or you get a parse
> error
I try to better explain ...
HTTP works like this: you ask something, you receive something, html and
texts are just one option.
Got it so far
Your e
> Afaik, the content length header is not necessary, but it will cause
> problems if it's set and it's wrong.
correct, missed Content-Length means the classic download with useless progress
bar and undefined estimation time, problematic for preloader as well in case of
images, swf, generic dat
> Header must come first (before you output anything) or you get a parse
> error
I try to better explain ...
HTTP works like this: you ask something, you receive something, html and texts
are just one option.
Your example page mess up html, zip, everything, because when you download a
file
On Sun, 2009-10-04 at 18:10 +0200, Kim Madsen wrote:
> Hi kranthi
>
> kranthi wrote on 2009-10-03 16:21:
> > Thats a lot of headers to read..
> > At a first glance I can see that you did not specify a content-length
> > header. this is a must and must be equal to the size of the file in
> > b
Hi kranthi
kranthi wrote on 2009-10-03 16:21:
> Thats a lot of headers to read..
> At a first glance I can see that you did not specify a content-length
> header. this is a must and must be equal to the size of the file in
> bytes
I've noticed that too, but it's impossiple to determine the lengt
Andrea Giammarchi wrote on 2009-10-03 13:40:
> Do you want users download the file or the zip?
They can choose between the two.
> do you send other headers before the download?
Header must come first (before you output anything) or you get a parse
error, so I'm not sure what you mean here? You
Thats a lot of headers to read..
At a first glance I can see that you did not specify a content-length
header. this is a must and must be equal to the size of the file in
bytes
--
Kranthi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Do you want users download the file or the zip?
do you send other headers before the download?
It's
quite a common error to set a default header in PHP at the beginning of
whatever application, while header should be used as last exit point
and never in the middle, or at the beginning, of a resp
-Original Message-
From: A.a.k [mailto:blue...@gmail.com]
Sent: 10 September 2009 08:27 AM
To: php-general@lists.php.net
Subject: [PHP] header problem
hello
I recentrly uploaded my project from localhost to a hosting and found many
errors and warnings which didnt have in local. one of the
u want the user to read the
> page, you should do something in Javascript with setTimeout(func,timeout)
> function.
>
> BR,
> SanTa
>
> - Original Message -
> From: "George Langley"
> To:
> Sent: Thursday, September 10, 2009 8:39 AM
> Subje
)
function.
BR,
SanTa
- Original Message -
From: "George Langley"
To:
Sent: Thursday, September 10, 2009 8:39 AM
Subject: Re: [PHP] header problem
Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot
use a header command. So you need to work through a
On Thu, 2009-09-10 at 08:57 +0200, A.a.k wrote:
> is there any alternative to header() for redirect users?
>
> "George Langley" wrote in message
> news:b1b897d4-7448-4b71-bffc-3addc27ce...@shaw.ca...
> > Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot
> > use a header
A.a.k wrote:
> is there any alternative to header() for redirect users?
As far as I know there isn't.
Is the header-error the first error on the page? If not, the other error
message itself is the reason for the header-error and will be solved if
you solve the other error.
--
PHP General Mailin
is there any alternative to header() for redirect users?
"George Langley" wrote in message
news:b1b897d4-7448-4b71-bffc-3addc27ce...@shaw.ca...
Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot
use a header command. So you need to work through all of your code, and
e
Hi Blueman. As soon as ANYTHING has been drawn to the browser, you
cannot use a header command. So you need to work through all of your
code, and ensure that all of your logic that could result in a header
call is run BEFORE you send any html code. Is going to be tricky if
mixing html and
QT wrote:
Hi,
I want to make a php file for download a jad file. I am using following
script to let browser understand that jad file is coming and download it.
Not sure If I have understood your question correctly but surely it
would be easier for you to just add the following lines to your
.h
I have not had any problems on IE 6 with this. The code I am using on numerous
scripts looks like this:
header("Content-Disposition: attachment; filename=$filename");
header("Content-Type: application/octet-stream");
fpassthru($filehandle);
fclose($filehandle);
Maybe the the combination of usin
This is not a bug. This is just one of many differances between the big
browser war. With Netscape (not sure which versions), the attachment thing
I found is required. But with IE it kills the browser.
- Original Message -
From: "xdrag" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMA
John:
On Fri, May 10, 2002 at 11:45:33AM -0400, 1LT John W. Holmes wrote:
> Read the manual page on mail(), also. Even if you switch the two like Dan
> said, your headers are not in the appropriate format.
Oh, you are sooo right! I mistakenly thought he was setting the
$toaddress when he was a
AIL PROTECTED]>
Sent: Friday, May 10, 2002 11:16 AM
Subject: Re: [PHP] header problem
> On Fri, May 10, 2002 at 06:35:00PM -0700, [EMAIL PROTECTED]
wrote:
>
> > mail($toaddress, $subject, $fromaddress, $bid_information);
>
> You have inverted the order of the body and additio
On Fri, May 10, 2002 at 06:35:00PM -0700, [EMAIL PROTECTED] wrote:
> mail($toaddress, $subject, $fromaddress, $bid_information);
You have inverted the order of the body and additional_headers arguments. Do this:
mail($toaddress, $subject, $bid_information, $fromaddress);
Enjoy,
--Dan
-
" <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 12:32 AM
Subject: Re: [PHP] header problem
> question, is this on a process page or on a page that renders text?
>
> Jim Lucas
> - Original Message -
> From: "Michael P. Carel" <[EMAIL PROT
ector but i cant find one. Could you please help me im stuck here.
>
>
>
> Regards,
> Mike
>
>
> - Original Message -
> From: "george Pitcher" <[EMAIL PROTECTED]>
> To: "Michael P. Carel" <[EMAIL PROTECTED]>
> Sent: Friday, Fe
here.
Regards,
Mike
- Original Message -
From: "george Pitcher" <[EMAIL PROTECTED]>
To: "Michael P. Carel" <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 5:44 PM
Subject: Re: [PHP] header problem
> Michael,
>
> You cannot have any 'displayed
You can't redirect after sending output unless you use Javascript or some
other weirdness. Redirections are done before any output.
-Rasmus
On Fri, 22 Feb 2002, Michael P. Carel wrote:
> Hi ,
>
> I have a problem in using the Header() function. I want to automatically
> redirect the page into
It seems to be bug in IE/Netscape/Other www browser on Mac, that's all.
Header wasn't correct interpreted. I had similar problem with NETSCAPE 6
on Windows. I hope they will correct it shortly.
Krzysztof
Petr Rezek wrote:
> Here is my question.
> I wrote a script, which gets parameters from d
There may not be any headers before you use the 'header' statement.
The header("Location:...") should be the first output you send. You
might want to consider moving the two 'anti-cache' headers after the
header("Location;...") statement.
RenzE.
On Mon, Mar 26, 2001 at 11:06:11PM +0800, E K L w
What happens when it doesn't work, any error messages?
Try:
header ("Location: http://www." . $URL . "/members/index.php");
or
$loc = "Location: http://www." . $URL . "/members/index.php";
header ($loc);
The first suggestion should work.
K E I T H V A N C E
Software Engineer
n-Link Corporatio
are you using cookies together with header , i had problems with that
-almir
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I`m having whats probably a very basic problem but just can`t get my head
> around it this late in the day, anyone have an
rection
was the only way to get my redirection with header to work.
py
- Original Message -
From: Rasmus Lerdorf <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 7:45 AM
Subject: Re: [PHP] Header Problem
> Should work
Should work just fine.
On Wed, 21 Mar 2001 [EMAIL PROTECTED] wrote:
> Hi,
>
> I`m having whats probably a very basic problem but just can`t get my head
> around it this late in the day, anyone have any idea why this won`t work?
>
> $URL="domain.com";
>
> header ("Location: Http://www.$URL/member
39 matches
Mail list logo