PDA

View Full Version : Save File



Zeater
11-18-2007, 08:31 PM
The following code, reduces an MP3 file length to x seconds. How do I save this music file as a new mp3 file?


$f = fopen("Upload/".$row['Path'], "rb");
$trash = fread($f, 2488320);
echo fread($f, 245760);
$trash = null ;
fclose($f);

timgolding
11-19-2007, 10:20 AM
Get a good mp3 class. I can't imagine just truncating the file it a great idea. See my attachment. This ones cool because you can even layer mp3s over the top of each other.