How to embed audio from urls in php
so guys i am here with a new tutiorial on how to embed audio from thier url in php dynamically.
so lets get started
so first of all create a new file and save it as "audioembed.php"
<html>
<title>embed audio dynamically</title>
<body>
<form action="out.php" method="GET">
<input type="text" name="audiofile" />
<input type="submit" name="embed" value=" embed audio" />
</form>
</body>
</html>
so here are the codes fro that file
and now create a new file named "out.php" and save it...
<html>
<audio src="<?php echo $_GET['audiofile'];?>" controls>
Your browser does not support the audio element.
</audio>
</html>
and here the codes fro out.php
and as you can see it is very basic codes
and does not have requirement of database but if you want to save the url of the audio for further use on the website .
you can do that easily yourself so guys i hope you like this
and please watch the tutorial for live working...
Thanks...

No comments :
Post a Comment