Hi all. could any one show me how i can execute php script inside flash and recive its data. As you see the php code
has 3 verialbes $artist, $song, $imageurl and i want to refrence those inside flash. could any one tell me how to execute php and refrece those varibles inside flash.thanks
has 3 verialbes $artist, $song, $imageurl and i want to refrence those inside flash. could any one tell me how to execute php and refrece those varibles inside flash.thanks
Code:
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Content-type: image/png");
$xml = file_get_contents("[URL unfurl="true"]http://www.somesite.com/rss.php?xml=true");[/URL]
preg_match_all('/<(artist|song|image)>([^<]+)<\/\\1>/i', $xml, $matches);
list($artist, $song, $imageurl) = $matches[2];
//echo $image url;
?>