Giving PHP write permission in Apache
问题 I'm relatively new to configuring Apache. I have a PHP script that writes a JSON file based on values retrieved from $_GET . <?php file_put_contents('State.json', "{ do: '" . $_GET['do'] . "' }"); echo "Success"; ?> I run that code by create an XHR request. Ally.xhr('/Cream/Foam?do=someCommand'); The page it returns says failed to open stream: Permission denied on line 3. <Directory "~/Dropbox/Web"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all <