Start php with -q, eg: php -q script.php
-Stathis.
Dan McCullough wrote:
>
> I am setting up a shell script to provide a menu for some tasks that our server
>admin would like
> to do via script rather then vi'ing the file, now I am almost finished but I would
>like to get rid
> of this ugly p
In article <001c01c112da$b8c0d420$0d6fa8c0@local>, Ryan Christensen wrote:
>I have some questions about using PHP as a shell scripting language...
>mainly how you pass arguments to a script on the command line. Say I'm
>using:
>
>--
>#!/usr/local/bin/php -q
>
>print "I am:
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, Austra
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 u
4 matches
Mail list logo