Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: ?php $quote = \; $xml = ''; $xml .= '?xml version=1.0?'.\n; $xml .= '?quicktime type=application/x-qtskin?'.\n; $xml .= 'skin'.\n; $xml .= 'movie src=' . $quote. ../../fonovisa.mov . $quote. '/'.\n; $xml .= 'contentregion src=' .$quote. ../images/mask.gif .

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 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

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 access a

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

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 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 had to

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:

[PHP] Problems with headers

2005-09-21 Thread Graham Anderson
I am trying to get headers to output properly Even though I am defining Content-type as 'video/quicktime' , the output is still text/html Also, Content-Length is not outputting properly either :( On the positive side, It appears to be outputting the $xml string correctly, but screws up

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

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

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 ?php _nothing_ should come before ?php thanks Chris :) I changed the spaces but am still getting

Re: [PHP] Problems with headers

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

Re: [PHP] Problems with headers

2005-09-21 Thread Chris Shiflett
Graham Anderson wrote: No spaces in the ?php line I think the problem is a line before the ?php line: bWarning/b: Cannot modify header information - headers already sent by (output started at /home/www/siren/siren/fonovisa/skintest/Library/php/ fonovisa_simple.php:1) in

Re: [PHP] Problems with headers

2005-09-21 Thread David Robley
Graham Anderson wrote: I checked that too :( No spaces in the ?php line I am running PHP Version 4.4.0 Out of curiosity, I removed the line: $xml .= '?quicktime type=application/x-qtskin?'.\n; and got the same error message Is this one of those situations for ob_start ? Kind of

[PHP] Problems with headers and downloading file

2004-11-29 Thread Christian Johansson
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 downloaded contains HTML

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 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

[PHP] Problems with headers in redirect

2001-11-13 Thread Richard Black
Hi, I'm hoping someone can help me with this one... I'm doing redirects to various types of file (Flash, Office, DWF etc) and have found a problem with IE5. I pass the script a document ID, and it retrieves the document record from a database, which stores the location of the file on the web

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 etc)