Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
thanks guys :) encoding in utf-8 NO BOM seems to do the trick g On Sep 22, 2005, at 11:05 AM, Jim Jagielski wrote: Set BBEdit to use Mac OS Roman. From the main window, choose the file icon (5th from left). Graham Anderson wrote: --Apple-Mail-15-928383921 Content-Transfer-Encoding: 7bit

Re: [PHP] Problems with headers

2005-09-22 Thread Jim Jagielski
Set BBEdit to use Mac OS Roman. From the main window, choose the file icon (5th from left). Graham Anderson wrote: > > --Apple-Mail-15-928383921 > Content-Transfer-Encoding: 7bit > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > Ok, I think I figured it out . > > I

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: > Ok, I think I figured it out . > > I had to convert my BBedit text editor file to plain text and then > copy/paste that text directly into a new server text file > So, I guess my $100+ text editor is screwing up the file ? > Is there some way to prevent this ? Tell your

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
Ok, I think I figured it out . I had to convert my BBedit text editor file to plain text and then copy/paste that text directly into a new server text file So, I guess my $100+ text editor is screwing up the file ? Is there some way to prevent this ? My text encoding is in UTF-8 because I hav

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: > Thanks Rasmus :) > that is an incredibly cool tip: EOB > Surprised I did not see you at the Digital Rights [hollywood digital] > conference in LA early this week. > Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types > and sales folk > > > when I a

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
Thanks Rasmus :) that is an incredibly cool tip: EOB Surprised I did not see you at the Digital Rights [hollywood digital] conference in LA early this week. Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types and sales folk when I access a straight movie file with no p

Re: [PHP] Problems with headers

2005-09-22 Thread Stephen Leaf
On Thursday 22 September 2005 12:10 am, David Robley wrote: Not sure if you can attach files however to make 100% sure I'm attaching a working copy of your script. I did modify it just a bit. However the code that you gave us initially worked flawlessly under CLI PHP. > Graham Anderson wrote: >

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: > $quote = "\""; > $xml = ''; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''; > header('Content-Type: video/quicktime'); //took out a space > header ("Content-Length: ".strlen($xml)); // added a

Re: [PHP] Problems with headers

2005-09-21 Thread David Robley
Graham Anderson wrote: > I checked that too :( > No spaces in the I am running PHP Version 4.4.0 > > Out of curiosity, I removed the line: > $xml .= ''."\n"; > and got the same error message > > Is this one of those situations for ob_start ? > Kind of bizarre to my Newbie mind > > $quote = "\

Re: [PHP] Problems with headers

2005-09-21 Thread Chris Shiflett
Graham Anderson wrote: > No spaces in the Warning: Cannot modify header information - headers > already sent by (output started at > /home/www/siren/siren/fonovisa/skintest/Library/php/ > fonovisa_simple.php:1) in > /home/www/siren/siren/fonovisa/skintest/Library/php/ > fonovisa_simple.php on li

Re: [PHP] Problems with headers

2005-09-21 Thread Graham Anderson
I checked that too :( No spaces in the '."\n"; and got the same error message Is this one of those situations for ob_start ? Kind of bizarre to my Newbie mind '."\n"; $xml .= ''."\n"; $xml .= ''."\n"; $xml .= ''."\n"; $xml .= ''."\n"; $xml .= ''."\n"; $xml .= ''; header('Content-Type: video/qui

Re: [PHP] Problems with headers

2005-09-21 Thread Stephen Leaf
On Wednesday 21 September 2005 09:34 pm, Graham Anderson wrote: it doesn't look like there is anything wrong with your code. what you might check however is, is there a space or a newline before thanks Chris :) > > I changed the spaces but am still getting the same output errors: > Warning: Cann

Re: [PHP] Problems with headers

2005-09-21 Thread Graham Anderson
thanks Chris :) I changed the spaces but am still getting the same output errors: Warning: Cannot modify header information - headers already sent by (output started at /home/www/siren/siren/fonovisa/skintest/Library/php/ fonovisa_simple.php:1) in /home/www/siren/siren/fonovisa/skintest/L

Re: [PHP] Problems with headers

2005-09-21 Thread Chris Shiflett
Graham Anderson wrote: Even though I am defining Content-type as 'video/quicktime', the output is still text/html Also, Content-Length is not outputting properly either :( [snip] header('Content-Type: video/quicktime'); header ("Content-Length:".strlen($xml)); You have a superfluous space

Re: [PHP] Problems with headers and downloading file

2004-11-29 Thread David Dickson
Christian Johansson wrote: I have a problem with downloads with the use of header() I have this code at the start at the download site: Header("Content-Type: application/download"); Header("Content-Disposition: attachment; filename=export.txt"); My problem is that the file which is downloaded

Re: [PHP] Problems with headers and downloading file

2004-11-29 Thread John Nichel
Christian Johansson wrote: Hello. I have a problem with downloads with the use of header() I have this code at the start at the download site: Header("Content-Type: application/download"); Header("Content-Disposition: attachment; filename=export.txt"); My problem is that the file which is

Re: [PHP] Problems with headers in redirect

2001-11-13 Thread John Steele
Hi Richy, Try sending the content header before the location header: header("Content-type: image/jpeg"); header("Location: http://yourhost.com/yourfile.jpg";); HTH, John >Hi, I'm hoping someone can help me with this one... > >I'm doing redirects to various types of file (Flash, Office, DWF