homepage Welcome to WebmasterWorld Guest from 54.205.168.88
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Stream FLV files using Php
jcmiras




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


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">
<script>
var VideoID = '1';
var Width = 664;
var Height = 462;
var Background = "#ffffff";
</script>
<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.

 

WesleyC




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

Your best bet is probably something like the following:

<?php
include( 'security.php' );

if ( user_is_authorized() )
{
echo file_get_contents( "my_flv_file.flv" );
die();
}
else
{
die();
}

?>

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.

wrockca




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

Great Tip Thx

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved