I want to get mp3 files from Google drive, (Or if you can help me get a free data space any website, please help. I would like to create a website to list and able to play the mp3 songs. Here is the beginnings. This code is not the best method I need because there I can use only one single file, and have to edit and link a new src link.
Edit:Or, I have a MYSQL database with drive.google links to the mp3 files.
How can I get the URLs from there?
<?php
$input = "https://drive.google.com/file/d/0BzvJ23h4c0mRblBacGktd0FPdDQ/view?
usp=sharing"; //song link
preg_match("/https:\/\/drive.google.com\/file\/d\/([a-zA-Z0-9_]+)\//",
$input, $match);
$GoogleDriveFileID = $match[1];
?>
<script>
var input =
"https://drive.google.com/file/d/0BzvJ23h4c0mRblBacGktd0FPdDQ/view?usp=sharing";
var res = input.match(/https:\/\/drive.google.com\/file\/d\/([a-zA-Z0-9_]+)\//)
var googleDriveFileID = res[1];
</script>
<form action="" method="POST" enctype="multipart/from-data">
</form>
<audio controls>
<source src="http://docs.google.com/uc?export=open&id=<?php echo
$GoogleDriveFileID; ?>" type="audio/mp3">
<p>This browser does not support HTML5 audio</p>
</audio>