devi usare

$var=@fopen("nome_file.txt","w+")