SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Placing music in a PHP page

    I recieved an intresting e-mail from a company today.

    Question - how much do you know about adding music to a php site?

    The people who are finishing my site are telling me that adding music so that it is continuous and not restarted everytime you click on another link etc cannot be done - however when I log onto the following webiste: http://www.cynthiamartyn.com/

    This is exactly what they have done.

    So I have mailed these people back and told them that the site in question used flash to achieve this effect. Am I correct in assuming that this is not possible using PHP seeing that you have to reload a page every time it is clicked.

    Thanks for the help
    Your Websites Your Way!!
    www.clhdesigns.com

  2. #2
    Grumpy Minimalist
    Join Date
    Jul 2006
    Location
    Ontario, Canada
    Posts
    424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP is a server-side language. Music is a client-side technology. They have nothing to do with each other.

    If you want to add music to a site, you'll be dealing with the HTML, not the PHP. View the source on the site you linked to see how they did it. I don't know much about HTML when it comes to music, but I believe continuous music can be done with a frames page.

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,258
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)

    music

    Years ago I used to have (cheesy) mid files that were in embed tags with auto-start and auto-loop. But when I thought about the probability that some users wouldn't want sound forced on them endlessly, despite how clever I might think it was, I stopped it.
    Now I have some Real (trademark) media files available (not cheesy) that open the RealPlayer when the link is clicked. This stays "live" autonomously until the user closes it.

  4. #4
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use frames, so that you have a small frame, where the music playing code resides, and the main content in a larger frame.

    http://www.schillmania.com/projects/soundmanager2/ for a javascript/flash based player, which can be embedded in your page.

  5. #5
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Northern Minnesota
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FWIW, I personally become violent when I view a website that forces music on me.... almost to the point of going on a cross country mission to hunt down and beat the site developer to a pulp with a baseball bat. I was in the car with the engine running and the bat in the trunk last time.


Bookmarks

Posting Permissions

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