title: PHP: fopen() Permission denied
body: <p>I am confused with this code:</p>
  
  <p>test.php:</p>
  
  <pre><code>fopen('test.txt','a+');
  </code></pre>
  
  <p>when I execute it, I get an error:</p>
  
  <pre><code>Warning: fopen(test.txt): failed to open stream:
       Permission denied in /var/www/html/yuelu3/mobile/text.php on line 2
  </code></pre>
  
  <p>test.txt:</p>
  
  <pre><code>-rwxrwxrwx. 1 jt jt     87 10月  7 20:58 test.txt
  </code></pre>
  
  <p>where is the problem?</p>
  
  <p>Thanks a lot!I have found the problem,I use FC13,because of the protect of SELinux,some action is denied.So, I just need to get rid of the protect.</p>