Auto load song to play on page with php possible?

Discussion in 'PHP' started by Dirty-Rockstar, Nov 5, 2006.

  1. #1
    hey guys and gals (gals coding is so sexy)

    anyway, Ive been here before for help and the response was great. so here i go again. I believe this is php possible.

    What i need is for when a person goes to a specific site on my page for an .mp3 to auto play in the background. whats the easiest way to do it?

    I tried with HTML and some users get the run/save option. I cant seem to avoid this.

    help?

    :)
     
    Dirty-Rockstar, Nov 5, 2006 IP
  2. Raisin

    Raisin Active Member

    Messages:
    294
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I don't know if it's possible or not, but I do know that auto music on a website is incredibly annoying. The fastest way to get me to leave a site is to have music blast out of my speakers without warning.
     
    Raisin, Nov 5, 2006 IP
  3. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #3
    You can't "do it with php". You can just print this HTML code with PHP:

    <embed src="filename.mp3" autostart="true" hidden="true" loop="true">
    HTML:
     
    SoKickIt, Nov 6, 2006 IP
  4. dotcomguy

    dotcomguy Peon

    Messages:
    824
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    dotcomguy, Nov 6, 2006 IP