[PHP] Execute flash files with PHP

2009-02-19 Thread R B
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.

Do you know how can i do to execute the .flv file with php and with
straming?
I tried with fopen, readfile, but don´t works.

Thank you


Re: [PHP] Execute flash files with PHP

2009-02-19 Thread Chris

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



Re: [PHP] Execute flash files with PHP

2009-02-19 Thread Chris

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.


There's a tutorial here:

http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

(have not tested it myself). The php code is available for download from 
that page as well.


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


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



Re: [PHP] Execute flash files with PHP

2009-02-19 Thread tedd

There's a tutorial here:

http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

(have not tested it myself). The php code is available for download 
from that page as well.


And the video there is awesome!

The narrator sounds like the one in my video:

http://webbytedd.com/bb/ice/

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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