Erindesign
03-22-2007, 09:35 PM
Hey all,
I have a php script that uploads songs to a directory and then I move them from there once I verify that they are the correct songs.
I have said Please have the song in Artist-SongName name mode, but about 50% of the idiots don't follow this so they just upload the song. Now, That's fine, I guess. I probably wouldn't take my time either since there's no real benefit.
I was wondering if I can do something to the php upload script that renames the file to:
$artist-$filename.ext (assuming $filename.ext is the file)
I have a php script that uploads songs to a directory and then I move them from there once I verify that they are the correct songs.
I have said Please have the song in Artist-SongName name mode, but about 50% of the idiots don't follow this so they just upload the song. Now, That's fine, I guess. I probably wouldn't take my time either since there's no real benefit.
I was wondering if I can do something to the php upload script that renames the file to:
$artist-$filename.ext (assuming $filename.ext is the file)