I'm trying to launch from the command line:
$ /usr/bin/php -f "index.php?refresh_words=1"
Could not open input file: index.php?refresh_words=1
Off course, without ?refresh_words=1
it's running ok. Can I pass $_GET parameters from the command line?
You can't do this that way. Use argv
and argc
. See Command Line Usage section in manual
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.