note 52792 added to features.commandline

From: Date: Thu, 12 May 2005 15:06:44 +0000
Subject: note 52792 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-89336@lists.php.net to get a copy of this message
I found I couldn't directly run php file with Zend? I have a sample php file p2.php #!/usr/local/bin/php -c /usr/local/Zend/etc/ <? include_once("/path/pipe_functions.inc"); phpinfo(); ?> if I run it by : php p2.php it works fine. but if I run it by ./p2.php It tells me "Zend Optimizer not installed" php -v shows PHP 5.0.3 (cli) (built: May 2 2005 10:34:32) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies Another problem is I must use "#!/usr/local/bin/php -c /usr/local/Zend/etc/" instead of "#!/usr/local/bin/php" in the first line. otherwise if I direct run ./p2.php, It give me a ".ould not open input file:" error. ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52792 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52792&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52792&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52792&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52792&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52792&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52792&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89336) next »