View Full Version : Save File

11-18-2007, 07: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 ;

11-19-2007, 09: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.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum