PHP and shell_exec

前端 未结 6 1120
余生分开走
余生分开走 2021-01-22 14:06

I have a PHP website and I would like to execute a very long Python script in background (300 MB memory and 100 seconds). The process communication is done via database: when th

6条回答
  •  天涯浪人
    2021-01-22 14:54

    A proplem could be that your script takes longer than the server waiting time definied for a request (can be set in the php.ini or httpd.conf).

    Another issue could be that the servers account does not have the right to execute or access code or files needed for your script to run.

提交回复
热议问题