...

View Full Version : php function or get file



dalka
03-07-2009, 09:58 AM
Hi everybody i have maked these codes but not working well can someony right my codes and here are what i maked:

Link code:

<a href="javascript:newwin=void(window.open('http://www.mysite.com/playmusic.php?id=4','newwin','width=380,height=300,resizable=0, scrollbars=0,top=60,left=60'))"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">play music 1</font></a>

playmusic.php code:


<html><head>
<title></title>

</head>

<body>

<div align="center">
<center>



<table align="center" border="3" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#0000FF" width="45" id="AutoNumber1">
<tr>
<td >
<p align="center">
<object id="p67"
height=45 width=434

classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/">
<param name="URL" value="'http://www.mysite.com/playmusic.php?id=1" ref>
<param name="autostart" value="-1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7117">
<param name="_cy" value="1191">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
name="p12"
width=434
height=45
src="http://www.mysite.com/playmusic.php?id=1"
showcontrols="true"
autostart="false"> </embed>
</object>
</td>
</tr>
</table>



</html>


how can i connect this list of my mp3's to the playmusic.php
Example i make this file id list to call file mp3 file

<?php
$link=array(
4=>"http://www.mysite.com/music4.mp3",

);
$url=$link[$_GET['linkid']];
if ($url){
header("Location: ".$url);
exit;
}
else{
header("Location: http://mysite.com/index.php");
}
?>

abduraooft
03-07-2009, 10:12 AM
<a href="javascript:newwin=void(window.open('http://www.mysite.com/playmusic.php?id=4'


$url=$link[$_GET['linkid']];
Shouldn't they be the same?

dalka
03-07-2009, 01:04 PM
Should they be the same?


Hi brother i did three file (link code, playmusic.php, and the playmusic1.php)

in the playmusic.php only the media player and the playmusic1.php is my list of all my mp3's how can i connect these two files if i call the playmusic.php?file=4 first pop up my playmusic.php and detect playmusic1.php to get the in the list.

thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum