Monkuar Posted November 8, 2010 Share Posted November 8, 2010 Hi guys ! I want to read and get the following name and artist from: http://stream.wadiomedia.org/flash/clean/ I need help on what functions I need to use to display it on my website like this site has: So pretty much I Want to have a php script that reads the artist name whenver that flash player updates to. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/ Share on other sites More sharing options...
corbeeresearch Posted November 8, 2010 Share Posted November 8, 2010 I'm not sure how actionscript bridge with php, but to create a variable use $ e.g. $variable = flashdb to print it out use echo $variable Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132004 Share on other sites More sharing options...
Monkuar Posted November 8, 2010 Author Share Posted November 8, 2010 I'm not sure how actionscript bridge with php, but to create a variable use $ e.g. $variable = flashdb to print it out use echo $variable LOL? Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132010 Share on other sites More sharing options...
Monkuar Posted November 9, 2010 Author Share Posted November 9, 2010 I'm not sure how actionscript bridge with php, but to create a variable use $ e.g. $variable = flashdb to print it out use echo $variable LOL? Anyone help with this plz thx Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132291 Share on other sites More sharing options...
BlueSkyIS Posted November 9, 2010 Share Posted November 9, 2010 As PHP is a server-side language and the Flash is displayed in your browser, I don't see a direct way for PHP to get anything from the Flash movie. If it's possible, you'd probably need to use some Javascript (ajax) to pull the info from the movie player and transmit that info to PHP on the server. Alternatively, if your server is streaming to the Flash movie, you might have some way to intercept the data transfer or integrate with the streaming server code. Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132296 Share on other sites More sharing options...
Mancent Posted November 9, 2010 Share Posted November 9, 2010 Its a flash app use php with xml? is the flash using xml to read the song title artist name ect. post your xml file and will convert it to php.. for a example: this is a xml file <files mainWidth="700" nRows="3" thumbHeight="80" thumbWidth="80" imageWidth="120" imageHeight="120" searchDetails="1" > <file thumbnail="thumbs/xmrv2.jpg" image="images/xmrv2.jpg" headline="XML based Image Rotator V2" downloadURL="http://flashden.net/item/xml-based-image-rotator-v2/36855"> <details> <![CDATA[ <p>This is the Version 2 of our <a href="/item/xml-based-image-rotator/25516"> XML based Image Rotator</a></p> <p><strong>Features:</strong> Fully XML Customizable Image Rotator.</p> <ul> <li>Add as many as images as you want. </li> <li> Supported files <strong> JPG , GIF, PNG & SWF </strong>. </li> <li>You can place <strong> HTML </strong> / <strong> CSS </strong> formatted image specific description.</li> <li><strong>Next</strong> & <strong>Previous</strong> Buttons on mouse over.</li> <li>Nice bouncing effect for description</li> <li>Image preloader for each image.</li> <li>You can change image dimensions , fade speed, image duration, description coming speed & description text background transparency lavel from”config.xml” file.</li> <li> Commented code.</li> <li> Help file included.</li> <li>Two XML files are included. for image data & for image rotator configuration.</li> </ul> <p><strong>Keyword:</strong> XML Based Image rotator, Image Gallary, Banner Rotation, Slide Show, Image Rotator</p> ]]> </details> </file> </files> this is the same file in php <?php include "../connect.php"; $username = mysql_real_escape_string($_GET['username']); $sql = "SELECT * FROM accounts"; $result = mysql_query($sql); $query = "SELECT username FROM accounts WHERE username = '$username'"; $results = mysql_query($query) or die("Data not found."); $new_xml = "<?xml version=\"1.0\"?>\n"; $new_xml .= "<files>\n"; if(mysql_num_rows($results) > 0) { while ($row = mysql_fetch_assoc($result)) { $new_xml .= "<file thumbnail=\"". $row['avatar'] ."\" image=\"". $row['avatar'] ."\" headline=\"". $row['username'] ."\" downloadURL=\"". $row['username'] ."\">\n"; $new_xml .= "<details>\n"; $new_xml .= "<![CDATA[". $row['bio'] ."]]>\n"; $new_xml .= "</details>\n"; $new_xml .= "</file>\n"; } $new_xml .= "</files>\n"; echo $new_xml; } else { echo "WiiStream Error!\n" ; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132304 Share on other sites More sharing options...
Mancent Posted November 9, 2010 Share Posted November 9, 2010 sorry i didn't read yout topic right my bad you just want to use this on your website? here <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="main" width="220" height="207" align="middle" id="main"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" /> <param name="quality" value="high" /> <embed src="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" quality="high" width="220" height="207" name="main" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132315 Share on other sites More sharing options...
Monkuar Posted November 9, 2010 Author Share Posted November 9, 2010 sorry i didn't read yout topic right my bad you just want to use this on your website? here <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="main" width="220" height="207" align="middle" id="main"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" /> <param name="quality" value="high" /> <embed src="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" quality="high" width="220" height="207" name="main" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> Yea just like that, but i want to have a lil bar showing the song name/artist on my main page to, w/o havnig that huge player on my page, so people can click on it and it opens on window popup go to warez-bb.org (top right) you'll see what im talking about thzx Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1132318 Share on other sites More sharing options...
Monkuar Posted November 11, 2010 Author Share Posted November 11, 2010 Bump! Is this even possible ? or does that site have some source code that i neeD? Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1133142 Share on other sites More sharing options...
Monkuar Posted November 15, 2010 Author Share Posted November 15, 2010 Bump! Is this even possible ? or does that site have some source code that i neeD? Bump Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1134637 Share on other sites More sharing options...
Pikachu2000 Posted November 15, 2010 Share Posted November 15, 2010 Don't bump threads so quickly unless you have new information to add. Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1134641 Share on other sites More sharing options...
Mancent Posted November 21, 2010 Share Posted November 21, 2010 Bump! Is this even possible ? or does that site have some source code that i neeD? Bump ya you got the basic codes you just need to get a popup window code and you can use java for that. google search dhtml popup window <script language="javascript" type="text/javascript"> <!-- /**************************************************** Author: Eric King Url: http://redrival.com/eak/index.shtml This script is free to use as long as this info is left in Featured on Dynamic Drive script library (http://www.dynamicdrive.com) ****************************************************/ var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);} // --> </script> and use this for your image for the button. <a href="http://www.yoursite.com/where your mp3 player flash name is" //this window size is 500 height 500 width onclick="NewWindow(this.href,'mywin','500','500','no','center');return false" onfocus="this.blur()">YourLinkText</a> Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1137692 Share on other sites More sharing options...
Mancent Posted November 21, 2010 Share Posted November 21, 2010 here is a quick example how they did it. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript"> <!-- /**************************************************** Author: Eric King Url: http://redrival.com/eak/index.shtml This script is free to use as long as this info is left in Featured on Dynamic Drive script library (http://www.dynamicdrive.com) ****************************************************/ var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);} // --> </script> </head> <body> <a href="http://stream.wadiomedia.org/flash/clean/player.swf?infoXML=http://stream.wadiomedia.org/api_public.php&streamURL=http://listen.wadiomedia.org/stream_128.php" onclick="NewWindow(this.href,'mywin','500','500','no','center');return false" onfocus="this.blur()"><img src="http://t2.gstatic.com/images?q=tbn:ANd9GcTyVLPW9ZSEYYu-uzHpwGCh-iEjzHxSv4GK3q30GmE-1t_cdj-hDg" width="25" height="25" border="0" /></a> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/218147-help-me-with-this-script-please/#findComment-1137697 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.