Search the Community
Showing results for tags 'file permissions'.
Really enjoying your book. On page 345 you mention that file uploads entail creating a folder that everyone can write (chmod 777). Wouldn't the best practice be to change the owner to www-data and set chmod 755 (on Linux systems)? Would this pose similar or any security risks? Would you still want to configure the .htaccess file (to restrict the folder to only make mp3s publically viewable for instance)?
i'm working on Ch.11 on a windows 7 with php 5.3...after downloading xampp. i put the text file: quotes.txt in the web root directory. (Is this the same area where htdocs is located?) after finishing add_quote.php and uploading it to my browser, i'm getting an error that reads: "Your quotation could not be stored due to a system error." So, i guess i'm not able to send my quote to the quote.txt file. Is it my file permissions or is it my file location that is the problem? I didn't do anything to the file permissions because the book is a bit hazy as to how windows users should deal w