php - Get mp3 Files from google drive -
i want mp3 files google drive, (or if can me free data space website, please help. create website list , able play mp3 songs. here beginnings. code not best method need because there can use 1 single file, , have edit , link new src link.
edit:or, have mysql database drive.google links mp3 files.
how can urls 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 not support html5 audio</p> </audio>
Comments
Post a Comment