calling exec on a php file and passing parameters?

前端 未结 5 1842
慢半拍i
慢半拍i 2021-02-19 00:53

I am wanting to call a php file using exec.

When I call it I want to be able to pass a variable through (an id).

I can call echo exec(\"php /var/www/unity/

5条回答
  •  天命终不由人
    2021-02-19 01:22

    try echo exec("php /var/www/unity/src/emailer.php 123"); in your script then read in the commandline parameters.

提交回复
热议问题