Hi guys,
I am getting nowhere with this, here is what I tried:
$filename="../../../../".$filename.".flv";
$xyz=readfile($filename);
When I run the page nothing is displayed below the above lines of code.
If anyone had any other suggestion I would really appreciate it, thanks.
Rob.
Encrypting/Hiding source code
Moderator: General Moderators
-
spacebiscuit
- Forum Contributor
- Posts: 390
- Joined: Mon Mar 07, 2005 3:20 pm
Here is my code so far:
As far as I am aware this is not working becuase I am echoing thr readfile variable in dir location of the param name for the flash player. I am not too sure how I can readfile and then play the file.
Thanks,
Rob.
Code: Select all
<?
$filename="../../../../"."2006-12-30_1.flv";
echo"$filename";
$xyz=readfile($filename);
?>
<object width="320" height="240" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
<param name="salign" value="lt">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="wmode" value="transparent">
<param name="movie" value="flvplayer.swf">
<param name="FlashVars" value="&streamName=<?echo"$xyz"?>&autoPlay=true&autoRewind=true">
<embed width="320" height="240" flashvars="&streamName=<?echo"$xyz"?>&autoPlay=true&autoRewind=true" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="flvplayer.swf" wmode="transparent"> </embed></object>Thanks,
Rob.
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
What you need to do is have an FLV player that uses encoded variable data or an FLV player that pulls the filename from the server using XML based upon cookie/session data.
In otherwords you are not going to be able to really hide the filename using the current standard FLV players. You will need one that is specifically written to use masked/encoded data.
Also, most browsers actually cache the FLV movie independent of what the player does. So the movies can be copied without anyone having to know the path or filename.
In otherwords you are not going to be able to really hide the filename using the current standard FLV players. You will need one that is specifically written to use masked/encoded data.
Also, most browsers actually cache the FLV movie independent of what the player does. So the movies can be copied without anyone having to know the path or filename.