PHP MP3 player

xiaoxiao2021-03-06  99

//play.php

/ / The focus is this sentence

//

//fileselect.php

$ PATH = "D: // my music /";

// I put it under the folder of the WwWroot from the music file.

$ FILESIZE = FileSize ($ PATH. $ FILE_NAME);

Header ("Content-Type: Audio / MPEG");

Header ("Content-Length: $ FileSize);

Readfile ($ PATH. $ FILE_NAME);

?>

转载请注明原文地址:https://www.9cbs.com/read-122097.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.036, SQL: 9