我可以将$ _GET参数传递给本地运行的脚本吗?
问题描述:
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?
我正在尝试从命令行启动: p>
$ / usr / bin / php -f“index.php?refresh_words = 1”
无法打开输入文件:index.php?refresh_words = 1
code> pre>
当然,没有?refresh_words = 1 code>它运行正常。 我可以从命令行传递$ _GET参数吗? p>
div>