Re: [PHP] Header problem - SOLVED

2009-10-19 Thread Kim Madsen
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

Re: [PHP] Header problem - solved

2009-10-16 Thread Kim Madsen
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

Re: [PHP] Header problem

2009-10-05 Thread Kim Madsen
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: Header must come first (before you output anything) or you get a parse error I try to better explain ... HTTP works

Re: [PHP] Header problem

2009-10-05 Thread Ashley Sheridan
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 on 2009-10-04 18:49: Header must come first

RE: [PHP] Header problem

2009-10-05 Thread Andrea Giammarchi
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,

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
regards Kim Date: Sat, 3 Oct 2009 13:30:38 +0200 From: php@emax.dk To: php-general@lists.php.net Subject: [PHP] Header problem Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
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 length

Re: [PHP] Header problem

2009-10-04 Thread Ashley Sheridan
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 bytes

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
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

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
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

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
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

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
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: Header must come first (before you output anything) or you get

Re: [PHP] Header problem

2009-10-04 Thread Tommy Pham
Original Message From: Kim Madsen php@emax.dk 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 first glance I can see that you did

[PHP] Header problem

2009-10-03 Thread Kim Madsen
Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php there's an iframe, that opens another file), if certain check are okay then a popup window opens download.php, where a mp3 file is fetched from the

RE: [PHP] Header problem

2009-10-03 Thread Andrea Giammarchi
Subject: [PHP] Header problem Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php there's an iframe, that opens another file), if certain check are okay then a popup window opens download.php

Re: [PHP] Header problem

2009-10-03 Thread kranthi
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

[PHP] header problem

2009-09-10 Thread A.a.k
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 most annoying one is header('Location xxx'). I have used header to redirect users from pages, and kinda used it alot. i know about the whitespace causing

Re: [PHP] header problem

2009-09-10 Thread George Langley
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

Re: [PHP] header problem

2009-09-10 Thread A.a.k
is there any alternative to header() for redirect users? George Langley george.lang...@shaw.ca 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

Re: [PHP] header problem

2009-09-10 Thread Marcus Gnaß
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

Re: [PHP] header problem

2009-09-10 Thread Ashley Sheridan
On Thu, 2009-09-10 at 08:57 +0200, A.a.k wrote: is there any alternative to header() for redirect users? George Langley george.lang...@shaw.ca 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

Re: [PHP] header problem

2009-09-10 Thread HostWare Kft.
(func,timeout) function. BR, SanTa - Original Message - From: George Langley george.lang...@shaw.ca To: php-general@lists.php.net 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

Re: [PHP] header problem

2009-09-10 Thread Ashley Sheridan
to read the page, you should do something in Javascript with setTimeout(func,timeout) function. BR, SanTa - Original Message - From: George Langley george.lang...@shaw.ca To: php-general@lists.php.net Sent: Thursday, September 10, 2009 8:39 AM Subject: Re: [PHP] header

RE: [PHP] header problem

2009-09-10 Thread Arno Kuhl
-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

[PHP] header problem for mobile browser

2004-10-19 Thread QT
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. But I have very interesting problem. If user open browser and write correct addres following script let the download file. But if the user open

Re: [PHP] header problem for mobile browser

2004-10-19 Thread raditha dissanayake
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

Re: [PHP] header() problem!!!!

2002-09-11 Thread Jim lucas
PM Subject: [PHP] header() problem Hi: is this a bug? [win98se + apache2.0.40 + PHP4.2.3 + IE6.0] download1.php: ?php ... header(Cache-Control: no-cache, must-revalidate); header(Content-Type:.$mime_type); header(Content-Disposition: filename=$filename); echo $filedata; ? works

Re: [PHP] header() problem!!!!

2002-09-11 Thread Henrik Hudson
); echo $filedata; ? - Original Message - From: xdrag [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Saturday, September 07, 2002 7:38 PM Subject: [PHP] header() problem Hi: is this a bug? [win98se + apache2.0.40 + PHP4.2.3 + IE6.0] download1.php: ?php

[PHP] header() problem!!!!

2002-09-07 Thread xdrag
Hi: is this a bug? [win98se + apache2.0.40 + PHP4.2.3 + IE6.0] download1.php: ?php ... header(Cache-Control: no-cache, must-revalidate); header(Content-Type:.$mime_type); header(Content-Disposition: filename=$filename); echo $filedata; ? works well download2.php: ?php ...

[PHP] header problem

2002-08-31 Thread mike
i'm setting up a messages option on my site, i was looking in the documentation and read that if headers are not included in an e-mail, the message is sent to the junk folder, i don't use hotmail (so i would not know), however i am adding headers: using // The headers $myHeaders = From:

[PHP] header problem

2002-05-10 Thread SCOTT . NOVINGER
why does the name variable ($name) not display in the email body, but displays just perfectly in the form result? i can see everything from Employee ID: down in the email body, and everything is seen in the form result. have i made some error? $bid_information = Name: .$name.\n

Re: [PHP] header problem

2002-05-10 Thread Analysis Solutions
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

Re: [PHP] header problem

2002-05-10 Thread 1LT John W. Holmes
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 additional_headers arguments. Do this: mail($toaddress, $subject

Re: [PHP] header problem

2002-05-10 Thread Analysis Solutions
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

[PHP] header problem - thank you!

2002-05-10 Thread SCOTT . NOVINGER
for all of you that replied to my original post, thank you. all of the suggestions worked and i learned a couple of new things along the way. scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] header() problem??

2002-03-11 Thread James E. Hicks III
I am trying to replace a perl script with the following PHP code. The perl code acted like a redirector, sending you to a different script depending on the value of the submit button. The following replacement code written in PHP works quite well until the postString exceeds some unknown size

Re: [PHP] header problem

2002-02-26 Thread Jim Lucas [php]
question, is this on a process page or on a page that renders text? Jim Lucas - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: george Pitcher [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Monday, February 25, 2002 5:44 PM Subject: Re: [PHP] header problem Thank

Re: [PHP] header problem

2002-02-26 Thread Michael P. Carel
- Original Message - From: Jim Lucas [php] [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; george Pitcher [EMAIL PROTECTED] Cc: php [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

Re: [PHP] header problem

2002-02-25 Thread Michael P. Carel
. 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' text prior to using the header function. You'll need to do

[PHP] header problem

2002-02-22 Thread Michael P. Carel
Hi , I have a problem in using the Header() function. I want to automatically redirect the page into another php script after a form completion but im receiving this error Warning: Cannot add header information - headers already sent by .. Heres the script line: header(Location:

Re: [PHP] header problem

2002-02-22 Thread Rasmus Lerdorf
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

[PHP] Header problem

2002-01-14 Thread Petr Rezek
Here is my question. I wrote a script, which gets parameters from db about document (location on disc, hashed filename and original filename). Then script open this file a send it to user. I use this headers Header(Content-Type: application/download\n); Header(Content-Disposition:

Re: [PHP] Header problem

2002-01-14 Thread Krzysztof Kocjan
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 db

[PHP] Header Problem...

2001-03-26 Thread E K L
Hi all, could any one tell me that how do I go to a specific URL using php command.At the same time, I would like to pass the variable to the page. I used header to do it but failed, with the error message:- Warning: Cannot add header information - headers already sent by (output started at

Re: [PHP] Header Problem...

2001-03-26 Thread Renze Munnik
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

Re: [PHP] Header Problem

2001-03-21 Thread Pierre-Yves Lemaire
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 just fine. On Wed

Re: [PHP] Header Problem

2001-03-21 Thread almir
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 any

Re: [PHP] Header Problem

2001-03-21 Thread Keith Vance
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

[PHP] Header Problem

2001-03-20 Thread KPortsmout
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/members/index.php"); $URL changes so I can`t write it directly into the header line,