[PHP] Tough One

2001-03-29 Thread KPortsmout
Hi, Ok I have a real tough one here (well to me it is :-) If I telnet into my server I can add a user by running the following command... /usr/sbin/cadduser -d www.domain.com -f users full name -u username -p password -w emailaddress for forwarding Which is great, but as I`m offering

RE: [PHP] Tough One

2001-03-29 Thread Krznaric Michael
To get this done I would use an Expect script, driven through CGI. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Tough One Hi, Ok I have a real tough one here (well to me

Re: [PHP] Tough One

2001-03-29 Thread Chris Moewes-Bystrom
I good solution for this kind of stuff is to just build a queue, either file or database. WHen you need to do a system type function you add that command to the queue, then have a cron job that runs (which can more safely run as a provolidged user), verifies that the function is ok and

Re: [PHP] Tough One

2001-03-29 Thread KPortsmout
In a message dated 29/03/2001 15:27:27 GMT Daylight Time, [EMAIL PROTECTED] writes: To get this done I would use an Expect script, driven through CGI. Mike Problem is I don`t program in CGI so have no idea what you mean :-) Ade -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Tough One

2001-03-29 Thread Pierre-Yves Lemaire
This is the only viable solutions because most system admin will banned all system calls coming from the web. As it should be, I think. py At 08:34 AM 3/29/01 -0600, you wrote: I good solution for this kind of stuff is to just build a queue, either file or database. WHen you need to do a system

RE: [PHP] Tough one?

2001-02-22 Thread Tim Ward
- From: Shawn Esplin [mailto:[EMAIL PROTECTED]] Sent: 21 February 2001 20:17 To: 'Mike'; [EMAIL PROTECTED] Subject: RE: [PHP] Tough one? I'm not sure this is the best way to do it, but you could try: $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x (count($keys) - 1); $x++) {

Re: [PHP] Tough one?

2001-02-21 Thread Jason Stechschulte
On Wed, Feb 21, 2001 at 01:34:10PM -0500, Mike wrote: $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x count($keys); $x++) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; } $updateString = ereg_replace(",$", "", $updateString); That should take care of the