Re: how to give vars to a php(shell env) script?
| From: | Hermann Bier | Date: | Wed, 24 Apr 2002 02:53:12 +0000 |
| Subject: | Re: how to give vars to a php(shell env) script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94293@lists.php.net to get a copy of this message | ||
Martin Towell wrote:
try setting an environment variable before calling your script -----Original Message----- From: Hermann Bier [mailto:kpot@gmx.net] Sent: Wednesday, April 24, 2002 12:34 PM To: php-general@lists.php.net Subject: [PHP] how to give vars to a php(shell env) script? Hi NG! how could i give some vars to a php script, that is directly executed by php-parser. for instance: #!/usr/bin/php -q <? echo "$SOME_VAR"; ?> is it possible at all? thanx for advance. Hermann Bierso actually, i want to execute this ^^^^^ script from another php script, which gonna be executed by apache. thx Hermann Bier