title: Are there other ways for creating a file using PHP?
body: <p>I need to create a series of files and I'm using the following method</p>
  
  <pre><code>$file = "myFile.txt";
  $fhandle = fopen($file, 'w') or die("can't open file");
  fclose($fhandle);
  </code></pre>
  
  <p>Are there better ways of doing this?</p>