[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 is it possible at all? thanx for advance. Hermann Bier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to give vars to a php(shell env) script?
Martin Towell wrote: > try setting an environment variable before calling your script > > > -Original Message----- > From: Hermann Bier [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 12:34 PM > To: [EMAIL PROTECTED] > 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 Bier > > > so actually, i want to execute this ^ script from another php script, which gonna be executed by apache. thx Hermann Bier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] popen(); problem, the function don`t finds the command......
Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = "/usr/sbin/saslpasswd -p $username"; $saslproc = popen($saslpasswd,"w"); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or directory # what i`m doing wrong?? please help. bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php