note 14231 rejected and deleted from function.popen.php by zak

From: Date: Tue, 24 Jul 2001 01:21:44 +0000
Subject: note 14231 rejected and deleted from function.popen.php by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-15740@lists.php.net to get a copy of this message
why i can't add a user by using popen? <? $sucommand = "su --command="; $useradd = "/usr/sbin/useradd "; $rootpasswd = "mypassword"; $user = "tom"; $user_add = sprintf("%s'%s %s'",$sucommand,$useradd,$user); $fp = popen($user_add,"w"); fputs($fp,$rootpasswd); pclose($fp); ?>

« previous php.notes (#15740) next »