【发布时间】:2011-10-10 09:50:45
【问题描述】:
我已经完成了一个运行 php 脚本的 bash 脚本。没有参数也能正常工作,但是当我添加参数(id 和 url)时,会出现一些错误:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf .d/mcrypt.ini on line 1 in Unknown on line 0
Could not open input file: /var/www/dev/dbinsert/script/automatisation.php? id=1
我像这样从 bash 运行 php 脚本:
php /var/www/dev/dbinsert/script/automatisation.php?id=19&url=http://bkjbezjnkelnkz.com
【问题讨论】:
标签: php bash shell parameters parameter-passing