title: fopen works on local server but not on webserver
body: <p>I'm using <code>fopen</code> to create a new file.  On my localserver it works fine, however on my webserver (linux shared hosting with goDaddy) I get:</p>
  
  <blockquote>
    <p>Warning: fopen(invoices/qbImport519.iif) [function.fopen]: failed to open stream: No such file or directory in /home/content/c/h/i/chiseled/html/tracking_admin/qbInvoices.php on line 97</p>
  </blockquote>
  
  <p>Thinking that it was settings on the webserver, I contacted GoDaddy who responded that everything was setup on my account correctly for this to work.  Any ideas?  </p>
  
  <p>Here's is my code:   </p>
  
  <pre><code>  $qbFile = fopen("invoices/qbImport".$Hits.".iif","ab");
    if (is_writable("invoices/qbImport".$Hits.".iif")){
      if (fwrite($qbFile,$iifWrite)){
        echo'&lt;a href="invoices/qbImport'.$Hits.'.iif"&gt;Download Your File&lt;/a&gt;&lt;br/&gt;';
        else {
          echo "&lt;p&gt;Cannot add your entry&lt;/p&gt;";
        }
      }
      else {
        echo "&lt;p&gt;The file is not writeable&lt;/p&gt;";
      }
    fclose($qbFile);
  </code></pre>
  
  <p>I have tried the paths <code>/home/content/c/h/i/chiseled/html/tracking_admin/invoices</code> and <code>invoices/</code>.  </p>
  
  <p>The file does not exists since it's based on the <code>$hits</code> variable which is incremented each time. So for some reason it's not able to create the new file. I have also tried just <code>a</code> for the <code>fopen</code> mode.</p>
  
  <p>Any help would be great. thanks.</p>