PDA

View Full Version : Help PHP to setup flash player


javierrebelde
10-25-2009, 06:53 AM
Hi

I am triying to setup this but i dont know how to create a simple instruction in PHP. What i need? as you see i have a iframe with ip and port in red the full adress is "http://www.mywebsite.com/flashplayer/index.php?ip=xxx.xxx.xxx.xxx&port=8000"

i want to be able to setup the ip and port here:
<iframe name='ifrm1' src='http://www.mywebsite.com/flashplayer/index.php?ip=xxx.xxx.xxx.xxx&port=8000' width='350' height='50' frameborder='0' scrolling='no'></iframe>

and le the index.php read the ip and port from the ip frame code. I dont know if the "/index.php?ip=xxx.xxx.xxx.xxx&port=8000" inside the iframe code is enough to let the index.php take the info about the ip and port

this is whats goes inside the index.php:

<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","328","20","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=http://:/;stream.nsv&type=mp3&volume=50&autostart=true");
s1.write("container");
</script>

what i have to add to the php to take the ip and port from the iframe code to fill the red "http://:"