PHP program under Nginx is not allowed to generate and delete directories, how to change?
PHP program under Nginx is not allowed to generate and delete directories, how to change?
I want to put the file in the new directory, if I manually set up that directory, the file can be generated, the program automatically generated not allowed, what's going on?
Are there any restrictions or requirements for the owner of the script?
------Solution--------------------
chmod ($mk _dir, 0777);
Change the directory to the appropriate permissions.
------Solution--------------------
It's too bad. 777
------Solution--------------------
Linux platform So, permissions set a little trouble, but set up, security is high
------Solution--------------------
is actually invoking the system's API. Processed functions so to speak.
Explore
Dizzy dead ... Changed the day of the bug, incredibly is mkdir caused the curse ...
I would like to ask:
Like mkdir chmod readdir ... Wait, these functions are PHP's system functions.
Or is it a Linux system function? Or a function of both???
And these functions seem to work under Windows, too!
Did not learn PHP, I hope you can explain ...
------Solution--------------------
755 is all right with you?
------Solution--------------------
discuss
Dizzy dead ... Changed the day of the bug, incredibly is mkdir caused the curse ...
I would like to ask:
Like mkdir chmod readdir ... Wait, these functions are PHP's system functions.
Or is it a Linux system function? Or a function of both???
And these functions seem to work under Windows, too!
Did not learn PHP, I hope you can explain ...
------Solution--------------------
There are similar APIs under win ... No, just skip the line.
Explore
Reference:
is actually invoking the system's API. Processed functions so to speak.
Reference:
Dizzy dead ... Changed the day of the bug, incredibly is mkdir caused the curse ...
I would like to ask:
Like mkdir chmod readdir ... Wait, these functions are PHP's system functions.
Or is it a Linux system function? Or is it a function of both?? ......
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.