Код: Выделить всё
<?php $res=file_get_contents('http://ip/'); preg_match("/TEST:<\/td>\n<td class=\"streamdata\">(.*?)<\/td>/",$res,$tes); print($tes[1]); ?>
Как осуществить?
UPD: Сделал с помощью этого урока http://flapps.ru/forum/topic2754.html
Код: Выделить всё
<?php $res=file_get_contents('http://ip/'); preg_match("/TEST:<\/td>\n<td class=\"streamdata\">(.*?)<\/td>/",$res,$tes); print($tes[1]); ?>
Код: Выделить всё
var loader:URLLoader = new URLLoader();var request:URLRequest = new URLRequest('file.php')var t:Timer = new TImer(n);t.addEventListener(TimerEvent.TIMER, onRefresh);....................function onRefresh(e:Event) { loader.load(request);}
Код: Выделить всё
var loader:URLLoader = new URLLoader();var request:URLRequest=new URLRequest('http://******.php');loader.addEventListener(Event.COMPLETE, onComplete);update(); function loadercomplete(event:Event){trace(event.target.data);setTimeout(update, 10000);} function update():void{loader.load(request);} function onComplete(event:Event):void { song_tf.text=loader.data; trace(event.target.data);setTimeout(update, 10000);}