473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Play song when page load using PHP

268 100+
hai friends
How to paly song when page laod using php code?
I my php application when i load the home page automatically pale song
Its possible !! ??Please give me any idea

Thanks
vssp
__________________
Oct 25 '06 #1
1 2790
you want to play a background sound upon loading a web page this code will do that .
include this line into you are php page
Expand|Select|Wrap|Line Numbers
  1. echo "<BGSOUND src=path-to-sound-clip>";
note : 1 dont forget to replace path-to-sound-clip to the your midi or wav file address
2 . only midi and wav file can be played .
Oct 25 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Chris Ianson | last post by:
Hi, is there a way to play a small sound snippet when a user clicks a certain hyperlink hotspot on an image? Thanks in advance.
9
by: ZikO | last post by:
Hi. I'm struggle with playing a wav in Visual Basic. First I wanted to use My.Computer.Audio.Play() method but I realized it's not working if I want to have music in background. I found in...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
1
by: sathikbasha | last post by:
please help me in java script can we play a song... when i click the html page song should play automatically onload........ plz tel me
10
by: exodus | last post by:
As a fun little task to gain more knowledge of python, i decided to try to mimick the ipod UI with it. here's what i've got so far #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by...
4
by: Kevin | last post by:
Hi! What is the best way to reproduce media files (mp3, wav, wma, wmv, etc)? Thanks =)
26
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are...
6
Atli
by: Atli | last post by:
Hi. So I have this flash movie that plays a Mp3 file using the MediaPlayback component, which is all working wonderfully. If the user presses a play button, the song starts to play, and I would...
2
by: mesut | last post by:
Hi Colleagues, When I click a link or button I would like to play some part of the MP3. e.g. I've got a MP3 file which is 60 minutes long. when I click control1 (doesn't matter what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.