php renaming (unknown) uploaded file extension
<p>hi guys i have to rename the (unknown) uploaded file extension from .MP3 to .zip please help I have been stuck with this for a few days now. Thanks in advance:)</p>

<pre><code>if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
}
$filename = "members/$id/music" . "/" . $_FILES["file"]["name"];
    function replace_extension($filename, $zip) {
    return preg_replace('/\..+$/', '.' . $zip, $filename);
}
</code></pre>
