Re: Execute flash files with PHP
| From: | Chris | Date: | Thu, 19 Feb 2009 22:38:48 +0000 |
| Subject: | Re: Execute flash files with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288620@lists.php.net to get a copy of this message | ||
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/