exec() runs via command line but not web

前端 未结 4 2125
感情败类
感情败类 2021-01-25 20:31

I have a PHP script involving exec() that will run fine from the command line but not in a web context. The script is simply this:



        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-25 21:13

    The web server runs as a different user, and that user does not have permission to write to your home directory.

提交回复
热议问题