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

From: Date: Tue, 09 Apr 2002 22:45:03 +0000
Subject: popen(); problem, the function don`t finds the command...
Groups: php.general 
Request: Send a blank email to php-general+get-92302@lists.php.net to get a copy of this message
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

« previous php.general (#92302) next »