what's the code for uploading... mp3 songs???
plz provide me the code....
how to upload song??
Moderator: General Moderators
The same as any other upload script.
Google
PHP .NET
here a little something for you tho.
PHP .NET
here a little something for you tho.
Code: Select all
$filename= "!!!YOURUPLOADEDFILE!!!";
$fp=fopen($filename,"r");
fseek($fp,filesize($filename)-128);
$checktag=fread($fp,3);
if ($checktag=="TAG") {
echo "Size: ".number_format(filesize($filename)/1000,2)." KBytes<br />";
echo "Title: ".fread($fp,30)."<br />";
echo "Author: ".fread($fp,30)."<br />";
echo "Album: ".fread($fp,30)."<br />";
echo "Copyright: ".fread($fp,4)."<br />";
echo "Comments: ".fread($fp,30)."<br />";
} else {
echo "Whatever... ";
}