RE: [PHP] Shell scripting and PHP.

2001-07-03 Thread Ray Hilton
I think it's the same as perl, using the backtick operator, ie: $result = `uptime`; That's ` NOT ' -Original Message- From: Johan Vikerskog (ECS) [mailto:[EMAIL PROTECTED]] Sent: 03 July 2001 09:41 To: [EMAIL PROTECTED] Subject: [PHP] Shell scripting and PHP. Hi all! If i want

[PHP] Shell scripting and PHP.

2001-07-03 Thread Johan Vikerskog (ECS)
Hi all! If i want to use some shell commands and use the result it displays to set a variable. How is this done? Is there a way of doing it like you can do with Perl? Anyone knows? Thanks for all the tips you can give me, or better yet, if you know of a tutorial somewere that covers this.

Re: [PHP] Shell scripting and PHP.

2001-07-03 Thread Brad Hubbard
On Tue, 3 Jul 2001 17:46, Ray Hilton wrote: I think it's the same as perl, using the backtick operator, ie: $result = `uptime`; That's ` NOT ' Look at passthru() exec() and system() as well. Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia