Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php function or get file

    Hi everybody i have maked these codes but not working well can someony right my codes and here are what i maked:

    Link code:
    PHP 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:

    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 Code:
    <?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"); 
    }
    ?>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Code:
    <a href="javascript:newwin=void(window.open('http://www.mysite.com/playmusic.php?id=4'
    Code:
    $url=$link[$_GET['linkid']];
    Shouldn't they be the same?
    Last edited by abduraooft; 03-07-2009 at 01:34 PM. Reason: typo
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •