English 中文(简体)
PHP: 客户网站服务器的游戏声音
原标题:PHP: Play sound file from server on client site [closed]

Want to play a file that on path like this /var/spool/sound/dog.wav present on server.
This not having any
1)URL
2) Not even on present in that website root folder
How i can make my client to listen to that dog.wav ?

I am getting file path by using Tree view client click on a file, it returns the path of that file being clicked. If you can tell me any tree view that having function to play sound file that it would be a great contribution from you.
Thanks a lot
GOD BLESS YOU

最佳回答

I guess you mean there s an audio file outside of your website root folder. Am I right?

在这种情况下,你可以使用阿帕奇虚拟名录(如果你正在使用阿帕奇),使你的道路从月球上可见,例如<代码>http://address/dept/。 a 然后使用你希望打听的录音机(现在你可以通过查阅你的音频文件)。 用户1352571正在显示您的超文本5解决办法。

问题回答

在这里,该守则可操作音频文件:

<!DOCTYPE html>
<html>
<body>

<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mp3" />
  Your browser does not support the audio element.
</audio>

</body>
</html>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签