Re: [PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Mike Gohlke
Hermann Bier wrote: Hermann, Even in CLI scripts, you must enclose the php script in delimiters. > 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($saslpr

Re: [PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Barry C. Hawkins
Hermann, Maybe change: $saslpasswd = "/usr/sbin/saslpasswd -p $username"; to: $saslpasswd = "/usr/sbin/saslpasswd -p " . $username; I assume $username is being assigned somewhere. Regards, -- Barry C. Hawkins Systems Consultant All Things Computed [EMAIL PROTECTED] On Thu, 11 Apr 2002 14:53

[PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Hermann Bier
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

[PHP] popen(); problem, the function don`t finds the command...

2002-04-09 Thread Hermann
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