$dstFile
"; $sql = "UPDATE sended_pdf SET path='$newFilename' WHERE id_agent=$pdf[id_agent] and id_object=$pdf[id_object]"; mysql_query($sql); unlink($srcFile); } } } } ?>