| | |
Play song when page load using PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
PHP only works on the server side. That means once it the page is sent to the browser PHP can't affect it anymore. You need to use HTML or JavaScript for this.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
•
•
•
•
PHP only works on the server side. That means once it the page is sent to the browser PHP can't affect it anymore. You need to use HTML or JavaScript for this.
You can use javascript to control media playing in a browser "plugin" such as quicktime or windows media player etc., but it can get quite complicated quite fast if you want to maximize browser support.
If you just want a simple you can just use the HTML tags <bgsound> or <embed>.
This will play a multimedia/sound file with the default supported player on your OS.
eg:
[HTML]<bgsound src="soundfile.wav" autostart="true" loop="false" />[/HTML]
(not hundred percent sure of the syntax of that tag)
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Mar 2008
Posts: 7
Reputation:
Solved Threads: 0
KathirvelMM
If this helps "Mark it as Solved"
If this helps "Mark it as Solved"
•
•
Join Date: Jul 2006
Posts: 197
Reputation:
Solved Threads: 5
yes Good example
Thanks
VSSP
VSSP
![]() |
Similar Threads
- Can I use a template html page within another html page (Site Layout and Usability)
- Form data & Back button (PHP)
- Hotmail "page cannot load" (Web Browsers)
- page doesnt load in opera and warning to IE users doesnt show help please? (PHP)
- Use php to load a page in a page? (PHP)
- page.php?page=1,2,3,4,..inf. (PHP)
Other Threads in the PHP Forum
- Previous Thread: Am I Secure? Secure Me :D
- Next Thread: php session control
| Thread Tools | Search this Thread |
ajax apache api array beginner binary body broken cakephp checkbox class cms code cookies cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert interactive ip javascript job joomla js limit link login mail mediawiki menu mlm mobile msqli_multi_query multiple mycodeisbad mysql navigation oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion regex remote script search server sessions sms source space sql stored subdomain syntax system table tutorial unicode update upload url validator variable video web webapplications websitecontactform xml youtube






