title: Not creating file via my browser
body: <p>when I run my page on my local host it does not create the file. I have given read and write permissions to the folder site. i have used system and exec functions and when i run the page via the terminal it creates a file but via my browser it doesnt.</p>
  
  <pre><code>$my_file = '/var/www/site/file.txt';
  $handle = fopen($my_file, 'w') or die('Cannot open file:  '.$my_file); 
  </code></pre>