how to upload song??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kanchan
Forum Commoner
Posts: 80
Joined: Tue Nov 30, 2004 12:03 pm

how to upload song??

Post by kanchan »

what's the code for uploading... mp3 songs???


plz provide me the code....
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

The same as any other upload script.

Google :)
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... ";
}
Post Reply