Re: Problems with headers
| From: | Rasmus Lerdorf | Date: | Thu, 22 Sep 2005 17:15:41 +0000 |
| Subject: | Re: Problems with headers | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222993@lists.php.net to get a copy of this message | ||
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 straight movie file with no php, fonovisa.mov,
> everything looks good when I curl it
> HTTP/1.1 200 OK
> Date: Thu, 22 Sep 2005 16:52:45 GMT
> Server: Apache/1.3.33 (Unix) PHP/4.4.0 FrontPage/5.0.2.2510
> Last-Modified: Tue, 20 Sep 2005 17:58:39 GMT
> ETag: "1b28dcc-e3-43304dcf"
> Accept-Ranges: bytes
> Content-Length: 227
> Content-Type: video/quicktime
>
> * Connection #0 left intact
> * Closing connection #0
> <?xml version="1.0"?>
> <?quicktime type="application/x-qtskin"?>
> <skin>
> <movie src="../../fonovisa.mov"/>
> <contentregion src="../images/mask.gif"/>
> <dragregion src="../images/drag.gif"/>
> </skin>
> --------
>
> If I use PHP to generate the same output, I get the error: can not
> modify the headers.
> Could the file extension, .php, somehow be preventing the php script
> from outputting properly ?
Do this:
od -c filename.php
And send us the output. If it is really long, put it online somewhere.
You have a stray carriage return or some other weird character in there
somewhere.
-Rasmus