title: File not being created in PHP?
body: <p>I've made this code in PHP because I want to practice file handling.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;PHP Test&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;form action = "index.php" method = "get"&gt;
      Do you want to make a new file (NF), edit a file (EF), or delete a file (DF)?
      &lt;input type = "text" name = "FileHandling"&gt;
      &lt;input type = "submit"&gt;
      &lt;br/&gt;
      &lt;/form&gt;
      &lt;?php
        $FileCommand = $_GET['FileHandling'];
        if($FileCommand == 'NF') {
          echo "&lt;form action = 'index.php' method = 'get'&gt;&lt;br/&gt;";
          echo "What is the new file's name?&lt;br/&gt;";
          echo "&lt;input type = 'text' name = 'CreateFile' method = 'get'&gt;&lt;br/&gt;";
          echo "&lt;input type = 'submit'&gt;&lt;br/&gt;";
          $FileName = $_GET['CreateFile'];
          echo $FileName;
          if(null !== $FileName) {
            echo $FileName;
            echo "yes";
            $CreateTheFile = fopen($FileName, 'w');
          } else {
            echo "No file name chosen. ";
          }
        }
      ?&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>However, there is a problem after you choose 'NF' and type in the file name.  The file does not get created:</p>
  
  <pre><code>echo $FileName;
  if(null !== $FileName) {
    echo $FileName;
    echo "yes";
    $CreateTheFile = fopen($FileName, 'w');
  }
  </code></pre>