title: unable to create file in the home dir
body: <p>I am facing an issue that is i want to create a file in my dropbox folder with php script .<strong>my os is Ubuntu 12.04</strong> . dropbox folder path is <code>/home/ris/dropbox/somefile.txt</code> .I know i don't have permission to do this .I used this php function to create file</p>
  
  <pre><code>&lt;?
  $dbdir="/home/ris/Dropbox/";
      if(is_dir($dbdir))
      {
  
          $myfile = fopen($dbdir."testfile.txt", "w");
           $myfile ? $var="creates" :$var=error_get_last();
          print_r($var);
      }else 
      {
          echo "no dir";  
      }
  ?&gt;
  </code></pre>
  
  <p>showing me the error </p>
  
  <pre><code>Array ( [type] =&gt; 2 [message] =&gt; fopen(/home/ris/Dropbox/): failed to open stream: Permission denied [file] =&gt; /var/www/cronjobs/cron-dbbkup.php [line] =&gt; 6 )
  </code></pre>
  
  <p>i just want to upload my backup files in dropbox folder. how it is possible .
  Thanks</p>