Advertisement

03.30.2008 at 02:51PM PDT, ID: 23281188
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

flash mp3 player not playing

Asked by weikelbob in Extensible Markup Language (XML), PHP Scripting Language, Macromedia Flash

Hello, the flash mp3 player here:

www.the3mediators.com

is not playing.

Here's the manual:

www.the3mediators.com/MINIPlayer/MINIPlayerUserManual.pdf

I've attached my 3 files of code.

In my admin directory, there is a file music.php (attached). It makes the xml file (playlist.xml) successfully (attached) but nothing plays. My mp3s are in www.the3mediators.com/MINIPlayer/mp3/

I've tried cmoding my files and directories.

Any help is appreciated.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
===========
INDEX.PHP
==========
<?php
include('includeme.php');
$errors = array();
if (isset($_POST["name"]))
{
$_SESSION['name']=$_POST['name'];
if(isset($_POST['email'])) 
$_SESSION['email']=$_POST['email'];
 
if(isset($_POST['category'])) 
$_SESSION['category']=$_POST['category'];
 
if(isset($_POST['city'])) 
$_SESSION['city']=$_POST['city'];
 
if(isset($_POST['question'])) 
$_SESSION['question']=$_POST['question'];
 
if(empty($_SESSION['name']))
$errors[] = "Please enter your name";
 
if (!preg_match("/^([a-zA-Z0-9])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/", $_SESSION['email']))
            {
               $errors[] = "Please enter valid email address.";
            }  
 
if(empty($_SESSION['city']))
$errors[] = "Please enter your city";
 
if(empty($_SESSION['question']))
$errors[] = "Please enter your question";
 
if (count($errors)==0)
{
header("Location:confirmation2.php");
exit();
}
}
?>
 
<html>
<head>
<title>The 3 Mediators</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="robots" content="index,follow" />
<link rel="stylesheet" type="text/css" href="style.css" />
<style type="text/css">
 
body {scrollbar-base-color:#9c2020;}
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; padding: 0; }
#AllContent { overflow: auto; padding: 10px; background: #eee; }
</style>
<script type="text/javascript">
 
function $(id) { return document.getElementById(id); }
 
function resize() {
   $('AllContent').style.height=(document.body.clientHeight-20)+'px';
}
 
window.onresize = resize;
window.onload = resize;
 
</script>
</head>
<body>
<div id="AllContent">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="26">
  <param name="movie" value="/MINIPlayer/MINIPlayer.swf">
  <param name="quality" value="high">
  <param name="wmode" value="transparent">
  <param name="FlashVars" value="playlistfile=/MINIPlayer/playlist.xml&configurationfile=/MINIPlayer/configuration.xml">
  <embed src="/MINIPlayer/MINIPlayer.swf" quality="high" wmode="transparent" flashvars="playlistfile=/MINIPlayer/playlist.xml&configurationfile=/MINIPlayer/configuration.xml" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="26"></embed>
</object>
<div id="container">
<div id="googletop">
<script type="text/javascript"><!--
google_ad_client = "pub-5294976156005474";
/* 728x90, created 2/18/08 */
google_ad_slot = "2928584591";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 
</div>
<div id="header">
<img src="images/header.jpg">
</div>
<div id="one" style="height:1000px">
<ul class="menu">
<li class="menu"><a class="menu" href="index.php">Home</a></li>
<li class="menu"><a class="menu" href="archive.php?category=entertainment">Archives</a></li>
<li class="menu"><a class="menu" href="contact.php">Contact</a></li>
</ul>
<script type="text/javascript"><!--
google_ad_client = "pub-5294976156005474";
/* 120x600, created 2/24/08 */
google_ad_slot = "9596653721";
google_ad_width = 100;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
 
<div id="two">
<div id="welcome">
<?php
         $query3="SELECT welcome from pages";
         $result3= mysql_query($query3);
         $row3=mysql_fetch_array($result3);
         echo $row3[0];
?>
</div>
 
<form action="index.php" method="POST">
 
<?php
 
if (count($errors)>0)
{
   $error = implode("<br />", $errors);
   $error = "<span style=\"color:red;font-weight:bold;\">" . $error . "</span>";
   echo $error;
}
 
?>
<table style="color:#000000;background-color:#e7e7e7" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width:80px;text-align:left">&nbsp;&nbsp;Name:</td><td style="width:200px;text-align:left"><input type="text" name="name"></td>
</tr>
<tr>
<td style="text-align:left">&nbsp;&nbsp;Email:</td><td style="text-align:left"><input type="text" name="email"></td>
</tr>
<tr>
<td style="text-align:left">&nbsp;&nbsp;City:</td><td style="text-align:left"><input type="text" name="city"></td>
</tr>
<tr>
<td style="text-align:left">&nbsp;&nbsp;Category:</td><td style="text-align:left">
	<select name="category">
<option value="entertainment">Entertainment</option>
<option value="sports">Sports</option>
<option value="relationships">Relationships</option>
<option value="misc">Miscellaneous</option>
</select
></td>
</tr>
<tr>
<td colspan="2">Your Question:</td>
</tr>
<tr>
<td colspan="2"><textarea rows="20" cols="33" name="question"></textarea></td>
</tr>
<tr>
<td colspan="2" style="text-align:left"><input type="submit" name="submit" value="SUBMIT QUESTION"></td>
</tr>
</table>
</form>
 
</div>
 
<div id="three">
<br>
<strong style="color:#ffffff">Picks of the week:</strong>
<br>
<br>
<div id="three1">
<img style="margin-top:-10px;margin-left:-10px;margin-bottom:5px;margin-right:-10px;padding:0px" src="images/week1header.gif">
<?php
         $query3="SELECT week1 from pages";
         $result3= mysql_query($query3);
         $row3=mysql_fetch_array($result3);
         echo $row3[0];
?>
</div>
<br>
<br>
 
<div id="three2">
<img style="margin-top:-10px;margin-left:-10px;margin-bottom:5px;margin-right:-10px;padding:0px"" src="images/week2header.gif">
 
<?php
         $query3="SELECT week2 from pages";
         $result3= mysql_query($query3);
         $row3=mysql_fetch_array($result3);
         echo $row3[0];
?>
</div>
<br>
<br>
<div id="three3">
<img style="margin-top:-10px;margin-left:-10px;margin-bottom:5px;margin-right:-10px;padding:0px" src="images/week3header.gif">
<?php
         $query3="SELECT week3 from pages";
         $result3= mysql_query($query3);
         $row3=mysql_fetch_array($result3);
         echo $row3[0];
?>
</div>
</div>
 
<div>
<img src="images/spacer.gif">
<script type="text/javascript"><!--
google_ad_client = "pub-5294976156005474";
/* 728x90, created 2/18/08 */
google_ad_slot = "2928584591";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
 
</div>
<?php include('footer.php'); ?>
</div>
</body>
</html>
 
 
=============================
MUSIC.PHP
============================
<?php include('includeme.php');
 
if(isset($_POST['submit']))
{
 
$query="UPDATE music1 set song1='" . mysql_real_escape_string(stripslashes($_POST['song1'])) . "',
song2='" . mysql_real_escape_string(stripslashes($_POST['song2'])) . "',
song3='" . mysql_real_escape_string(stripslashes($_POST['song3'])) . "',
song4='" . mysql_real_escape_string(stripslashes($_POST['song4'])) . "',
song5='" . mysql_real_escape_string(stripslashes($_POST['song5'])) . "',
song6='" . mysql_real_escape_string(stripslashes($_POST['song6'])) . "', 
song7='" . mysql_real_escape_string(stripslashes($_POST['song7'])) . "', 
song8='" . mysql_real_escape_string(stripslashes($_POST['song8'])) . "',
song9='" . mysql_real_escape_string(stripslashes($_POST['song9'])) . "' where id=1";
$result=mysql_query($query);
$myFile = "mySongs.xml";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = '<?xml version="1.0" encoding="iso-8859-1"?>';
fwrite($fh, $stringData);
$stringData = "<playlist>";
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song1'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song2'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song3'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song4'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song5'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song6'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song7'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song8'] . '"/>';
fwrite($fh, $stringData);
$stringData = '         <element URL ="' . "/mp3/" . $_POST['song9'] . '"/>';
fwrite($fh, $stringData);
 
$stringData = '</playlist>';
fwrite($fh, $stringData);
 
fclose($fh);
copy  ( "mySongs.xml"  , "../MINIPlayer/playlist.xml");
echo "<h1 style='color:red'>Complete</h1>";
 
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
 
Click <a href="index.php">here</a> to return to the main admin.
<br>
<br>
<h2>PICK 9 SONGS:</h2>
 
<?php
  $query ="SELECT * FROM music1";
  $result = mysql_query ($query);
  $row = mysql_fetch_array($result);
?> 
<form action="music.php" method="POST">
 
<?php for($i=1;$i<=9;$i++)
{
?>
Select Song
<?php echo $i;
?>
 Filename:&nbsp;
 <?php
if ($handle = opendir(getcwd() . '/MINIPlayer/mp3'))
 
      {  echo '<select name="song' . $i . '">';
 
      while(false !== ($file = readdir($handle)))
      {
            if($file != '.' && $file != '..')
            {
                  echo "<option value='$file'>$file</option>";
            }
      }
 
      closedir($handle);
          
      echo "<option value='song" . $i . "' selected='selected'>" . $row[$i] . "</option>";
      echo '</select>';
}
 
?>
<br>
<br>
<?php 
}
?>
<input style="font-size:150%" type="submit" name="submit" value="CHANGE ALL SONGS TO ABOVE SELECTIONS">
</form>
</body>
</html>
 
===================
PLAYLIST.XML
=====================
<?xml version="1.0" encoding="iso-8859-1"?><playlist>         <element URL ="/mp3/jazzalude.mp3"/>         <element URL ="/mp3/homeland.mp3"/>         <element URL ="/mp3/homeland.mp3"/>         <element URL ="/mp3/homeland.mp3"/>         <element URL ="/mp3/homeland.mp3"/>         <element URL ="/mp3/jazzalude.mp3"/>         <element URL ="/mp3/homeland.mp3"/>         <element URL ="/mp3/homeland.mp3"/>         <element URL ="/mp3/jazzalude.mp3"/></playlist>
[+][-]03.31.2008 at 03:53AM PDT, ID: 21244348

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 08:46AM PDT, ID: 21255098

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.05.2008 at 12:34PM PDT, ID: 21289316

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 12:03AM PDT, ID: 21294795

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 11:24AM PDT, ID: 21317627

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 10:14PM PDT, ID: 21321870

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Markup Language (XML), PHP Scripting Language, Macromedia Flash
Sign Up Now!
Solution Provided By: bansidhar
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628