Encrypt Html Strings Outputted From Php Variables

I have a PHP file which has a variable that outputs a set of HTML strings. The entire string forms the JWPlayer “embedding source code” so users may embed the requested video onto other websites. The code is something like this:

$embed_code='<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=”480″ height=”360″ id=”single1″ name=”single1″>’;
$embed_code.='<param name=”movie” value=”http://www.domain.com/jwplayer/player.swf”>’;
$embed_code.='<param name=”allowfullscreen” value=”true”>’;
$embed_code.='<param name=”allowscriptaccess” value=”always”>’;
$embed_code.='<param name=”wmode” value=”transparent”>’;
$embed_code.='<param name=”flashvars” value=”file=http://www.domain.com/jw_put.php’.$file_val.’ℑ=http://www.domain.com/image.gif”>’;

I would like the “strings” be encrypted so they can’t be easily seen, something similar to this, http://www.animecrazy.net/naruto-shippuuden-episode-172/ If you view the source where the video player is embedded, all you see is scrambled text.

Leave a Reply

Your email address will not be published. Required fields are marked *