Setting CHMOD is a no no!
Setting 766 for the files you want to write opens you up to hackers that are on your shared host account!
I recommend to use SQL to store data, you need a user id and password to have access to it.
Very secure and easy to use!
© 2014, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.