Hi boys&girls !
I have a strange problem when I try to download a file : the extension of the downloaded file is always name_of_file.extension.php !
I use the following script, and know for sure the $name is correct (name_of_the_file.correct_extension). So what ?
If anybody has a idea, plz let me really know, I had to finish this for the day before yesterday .......
//we send him the file
$name = substr(strrchr($path, "/"), 1);
$size=filesize(CONTENT_PATH."/".$path);
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=".$name);
header("Content-Transfer-Encoding: binary");
readfile(CONTENT_PATH."/".$path);
Bye
Schlum