Re: Problems with headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:
> > 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 = "\"";
> > $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 still getting the :
> >>> <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 />
>
> Actually, I think it might be something quite unexpected. Try commenting
> out the two calls to header, then run the script and do a 'view source'. My
> guess is there is a syntax error message being output which will of course
> cause header to bleat. My second guess is that the syntax error will be
> caused by line 2 (but won't appear in that line)
>
> $quote = "\"";
>
> which may not be doing what you hope it is. The solution for this is left
> as an exercise for the student :-)
>
> Cheers
> --
> David Robley
>
> The most expensive component is the one that breaks.

Attachment: a.php
Description: application/php

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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux