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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts

    making a bell sound?

    I have a php script which autoloads every minute to display txt msgs out of a database. I want to add a sound if there is a new msg in the database - so my question is: how do I make a sound in php? I have a .wav file of the sound I want to use. Thanks
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,374
    Thanks
    8
    Thanked 1,075 Times in 1,066 Posts
    Find an MP3 "ding" file ... perhaps the name of the file will be "ding.mp3" ...

    Then try this:

    echo"<embed src='ding.mp3' autostart='true' hidden='true' id='sound1' loop='false'></embed>\n";

  • Users who have thanked mlseim for this post:

    rfresh (10-12-2009)


  •  

    Posting Permissions

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