Hi,
I have a RH 7.2 server with php 4.1.2 installed as a CGI. I'm trying to run this script #!/usr/local/phpcgi/bin/php -q <? print "hello"; ?> I get this as output: [root@dev bin]# ./test.php Error in argument 1, char 3: option not found Error in argument 1, char 3: option not found Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]} etc if I remove the -q (ie first line #!/usr/local/phpcgi/bin/php) I get: [root@dev bin]# ./test.php bash: ./test.php: No such file or directory PHP seems to be OK : [root@dev bin]# /usr/local/phpcgi/bin/php -m Running PHP 4.1.2 Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies [PHP Modules] xml standard session posix pcre mysql imap [Zend Modules] Not Implemented The same script works fine on another server (with a different path to php) so, not being a Linux guru I'm stuck at this point. The script's permissions are set to 755. Any help would be great! Many thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php