Jump to content

Recommended Posts

Posted

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?

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...