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
https://forums.phpfreaks.com/topic/198477-cant-write-file-to-a-created-folder/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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