Re: Execute flash files with PHP

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

 



R B wrote:
Hello.

I have two scripts in php that reads a .swf or .flv movie file, like this:

SCRIPT # 1

<?php

$movie = "movie.swf";

readfile($movie);
?>

SCRIPT # 2

<?php

$movie = "movie.flv";

readfile($movie);
?>

The script # 1 with the .swf file works fine: the video is executed with
streaming.
The script # 2 with the .flv file  is executed but without streaming.

If i execute the movie.flv directly (without the php script), then it´s
executed with streaming.

If you change the filetype (from swf to flv) you need to change the headers php sends before it spits out the file.

What headers are you sending?

--
Postgresql & php tutorials
http://www.designmagick.com/


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