Geuis Posted December 14, 2005 Posted December 14, 2005 I'm writing a php script that needs to create files in a single directory. The format of the files would be something like /cache/ce37925d2912fc54927f566048280851.html. The bit code after /cache/ is a randomly generated name for the file. The file does not exist before. How can I set just the cache directory to allow php the ability to create new files? Quote
TCH-Bruce Posted December 14, 2005 Posted December 14, 2005 Set the permissions to 777 on the cache folder. That's the only way I know of. Quote
Geuis Posted December 15, 2005 Author Posted December 15, 2005 I had already done this. Didn't work. Any other takers on the htaccess question? Quote
owatagal Posted December 17, 2005 Posted December 17, 2005 I guess my question would be how you're trying to create the files. For what it's worth, I can use fopen and fwrite to create and edit files (even if they don't exist) without worrying about changing anything in .htaccess. All I had to do, like Bruce said, was make sure the directory I was creating the files in was set to 777. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.