Re: can I join two mp3 files with php
| From: | QT | Date: | Tue, 19 Apr 2005 20:27:59 +0000 |
| Subject: | Re: can I join two mp3 files with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213419@lists.php.net to get a copy of this message | ||
thank you very much
it works with mp3 good. But when I try with amr, it doenst work. I think
first amr files put some time limit and player stop at time limit. Now I am
looking to find how can I convert mp3 to amr. Because I need to have amr
file at the end
best regards
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B0430C7F3@nemesis...
[snip]
any idea how can I join two mp3 file with php
[/snip]
if(!function_exists('file_put_contents')) {
function file_put_contents($filename, $data, $file_append = false) {
$fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
if(!$fp) {
trigger_error('file_put_contents cannot write in file.',
E_USER_ERROR);
return;
}
fputs($fp, $data);
fclose($fp);
}
}
$bar = file_get_contents("2.mp3");
file_put_contents("1.mp3", $bar, true);
But I don't think that this will work the way that you would expect it
to.