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 on the headers
How do I fix this ?


many thanks in advance


with the below script:
<?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" . $quote. '/>'."\n"; $xml .= '<dragregion src=' . $quote. "../images/drag.gif" . $quote. '/>'."\n";
$xml .= '</skin>';

header('Content-Type:  video/quicktime');
header ("Content-Length:".strlen($xml));
echo $xml;
?>


I am getting the below errors by curl'ing the php script.
HTTP/1.1 200 OK
Date: Thu, 22 Sep 2005 02:03:24 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0 FrontPage/5.0.2.2510
X-Powered-By: PHP/4.4.0
Transfer-Encoding: chunked
Content-Type: text/html

<br />
<b>Warning</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 <b>/home/www/siren/siren/fonovisa/skintest/Library/php/ fonovisa_simple.php</b> on line <b>11</b><br />
<br />
<b>Warning</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 <b>/home/www/siren/siren/fonovisa/skintest/Library/php/ fonovisa_simple.php</b> on line <b>12</b><br />
<?xml version="1.0"?>
<?quicktime type="application/x-qtskin"?>
<skin>
<movie src="../../fonovisa.mov"/>
<contentregion src="../images/mask.gif"/>
<dragregion src="../images/drag.gif"/>
* Connection #0 left intact
* Closing connection #0
</skin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to