Re: [PHP] Shell scripting and PHP.
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 3074 Email: [EMAIL PROTECTED] Ph: +61-3-94645981 Fax: +61-3-94645982 Mob: +61-419107559 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Shell scripting and PHP.
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. //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Shell scripting and PHP.
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 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. //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]