note 52792 deleted from features.commandline by nlopess

From: Date: Thu, 12 May 2005 18:23:48 +0000
Subject: note 52792 deleted from features.commandline by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89348@lists.php.net to get a copy of this message
Note Submitter: jackchen at tcn dot net ---- 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.

« previous php.notes (#89348) next »