Click to See Complete Forum and Search --> : PHP audio streaming...


mahfooz
08-25-2008, 12:59 AM
http://www.neosounds.com/

i want to develop a page like the above URL(or something like that), as when click on play button, i open a new mini-flash-player and play the audio file, i will use php to fetch the audio files from mysql and then play appropriate file by clicking the that file...

i m new to action script, so ur help will be great in this regards..

thanks.. :D:D

Kyleva2204
08-25-2008, 02:31 AM
PHP != ActionScript

BUT if you wanted, you would just make a PHP page that had:

$query = "SELECT song FROM songs WHERE `id` = $_GET[id]";
$result = mysql_query($query);
$song = mysql_result($result,1,1);
header('Content-Type: audio/mpeg');
echo $song;



and then call the php file like so in action script
mysite.com/fetch_song.php?id=id_of_song_in_db

mahfooz
08-25-2008, 03:08 AM
ok thanks for the help..

but i m not familiar with action script, can u also show me some action script, so that i can easily handle it

thanks....

Kyleva2204
08-25-2008, 03:13 AM
you posted the question in a php fourm, not an actionscript fourm, try asking over in the multimedia fourms here on webdev.