Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Stream FLV files using Php



4:19 pm on Jun 7, 2008 (gmt 0)

10+ Year Member

Do you know of a code that uses a PHP code to load the FLV file for the swf flash player? I mean, something like this;

<div class="player">
var VideoID = '1';
var Width = 664;
var Height = 462;
var Background = "#ffffff";
<script src="http://www.mydomain.com/interface.php" language="javascript"></script></div>

where einterface.php processes the flv files.

This is important because it can protect your flv files from unauthorized download.


5:06 pm on Jun 9, 2008 (gmt 0)

5+ Year Member

Your best bet is probably something like the following:

include( 'security.php' );

if ( user_is_authorized() )
echo file_get_contents( "my_flv_file.flv" );


Obviously, your security functions will be named and processed differently, so you'll have to replace the include at the top and the user_is_authorized() function with your own security implementations.


5:29 pm on Jun 9, 2008 (gmt 0)

10+ Year Member

Great Tip Thx

Featured Threads

Hot Threads This Week

Hot Threads This Month