php-cli-shebang

From: Date: Tue, 07 Jun 2011 22:36:03 +0000
Subject: php-cli-shebang
Groups: php.general 
Request: Send a blank email to php-general+get-313456@lists.php.net to get a copy of this message
Windows Server 2003 PHP fastcgi 5.2 Hello, I am needing to call a php script from another language, so I am using cli. I have it basically working but have a couple questions. First, what is the (suggested) '-q' flag for in the shebang script? last, my shell is returning the actual call along with the output... which I don't want the call, just the output. ie, the call is: [dos]php-cgi.exe -f C:\<path>\phpscript.php[/dos] 'phpscript.php' is as follows: ----------phpscript.php----------- #!C:\<path>\php-cgi.exe -q <?php echo "Hello world of PHP CLI!"; ?> ---------------------------------- This is what is returned: C:\edc>php-cgi.exe -f C:\<path>\phpscript.php Hello world of PHP CLI! I want only: "Hello world of PHP CLI!" Is there a way to suppress the call? Cheers, Donovan -- dbrooke

« previous php.general (#313456) next »