explnum_data)||($ligne->explnum_path)) { if ($ligne->explnum_path) { $up = new upload_folder($ligne->repertoire_id); $path = str_replace("//","/",$ligne->path); $path=$up->encoder_chaine($path); $fo = fopen($path,'rb'); $ligne->explnum_data=fread($fo,filesize($path)); $ligne->taille=filesize($path); fclose($fo); } header("Content-Type: ".$ligne->explnum_mimetype); header("Content-Length: ".$ligne->taille); print $ligne->explnum_data; exit ; } else print "ERROR".mysql_error() ;