简体   繁体   中英

Execute PHP in background passing GET Params

I need to execute a heavy PHP script, in background,

I use this to execute some other PHP scripts

 exec("C:/AppServ/php5/php phptest.php> C:/AppServ/www/common/output.txt 2>&1 &");

But now I need to pass some GET parameters to these scripts, and obviously, catch them. How can I add my params?

Get is a CRUD function , although CRUD isn't exclusive to the HTTP protocol it isn't the method used by the shell.

Command line arguments in php is what you're looking for. They're not too dissimilar from put get parameters at the end of a url proceeding a question mark.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM