Jump to content

Can't write file to a created folder


marcusl

Recommended Posts

Hey guys. Hope you're well.

 

I have a php script on my server. The php script creates a new folder called "test", then set that folder's permission to 777. Next, I attempt to save a file into the "test" folder, but it doesn't work. As a test, I logged in as the admin using FileZilla, then created a folder named "test2". I ran another php script to save a file into the "test2" folder, and that worked fine. Both "test" and "test2" have 777 permissions. The only difference is that "test" has "apache apache" under "Owner/Group", and "test2" has the admin details under "Owner/Group". I want to create a folder via php, then save a file inside that folder.

 

Thanks for your help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.