PHP and file write permissions

前端 未结 3 1553
一整个雨季
一整个雨季 2020-12-18 08:43

I have a folder with 3 different php scripts in it. email.php txt.php android.php

I pipe emails and/or txts to their respective scripts, and use http POST to send da

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 09:06

    Use ls as @DavidXia suggests and check who has ownership of the output files. They should be owned by the user who was running whichever script created them. If the files are owned by different users, then you will need to put the users in a common group and assign all the files to be owned by that group (the users who own the files can remain discrete). Then you'll also want to assign g+rw to all those files via chmod.

提交回复
热议问题