Re: CLI through PHP

From: Date: Thu, 14 Mar 2002 14:29:36 +0000
Subject: Re: CLI through PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88500@lists.php.net to get a copy of this message
Pipes. I've only had to do it with perl, so i have no idea what the syntax or function calls are with PHP, but i'm almost positive that PHP supports reading/writing to/from pipes. Liam wrote:
14/03/2002 10:51:10 PM Hi, I was wondering how I'd go about manipulating some command line software through PHP. For instance, I have an FTP program installed that allows you to add users through the command line, but it's in this format: ------------------------------------------------------------------------------ mailto:root@apathy">root@apathy#: pure-pw useradd joedirt -d /home/jpedirt -u ftpuser Enter User's Password: Enter User's Password Again: User Created mailto:root@apathy">root@apathy#: ------------------------------------------------------------------------------ How would I go about writing a simple PHP script that will add users for me using the data submitted by a form? Thanks for your help. Liam


« previous php.general (#88500) next »