Prova con:

Codice PHP:
 $fh fopen($file'w');