Re: Can php run as a script?
| From: | Tim Burden | Date: | Wed, 02 Apr 2003 17:45:30 +0000 |
| Subject: | Re: Can php run as a script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142015@lists.php.net to get a copy of this message | ||
find / -name php -print
----- Original Message -----
From: "Poon, Kelvin (Infomart)" <kpoon@infomart.ca>
To: "'Tim Burden'" <tim@thebigbrain.ca>
Cc: <php-general@lists.php.net>
Sent: Wednesday, April 02, 2003 12:35 PM
Subject: RE: Can php run as a script?
> Thanks!
>
> but the thing is I have php 4.2.2 version installed in that server. And
> since it is not 4.3.0 therefore CLI isn't on by default. How can I check
if
> CLI is on or not? If it is not on, I won't be able to excute the php as a
> script in another other way?
>
> THnaks@
>
> -----Original Message-----
> From: Tim Burden [mailto:tim@thebigbrain.ca]
> Sent: Wednesday, April 02, 2003 12:02 PM
> To: Kelvin Poon
> Cc: php-general@lists.php.net
> Subject: Re: Can php run as a script?
>
>
> Look for PHP CLI in google.
>
> Recent versions of PHP install at CLI PHP executable by default.
> e.g I ended up with one in:
>
> /usr/local/apache/bin/php
>
> [root@machine root]# /usr/local/apache/bin/php -v
> PHP 4.3.1 (cli) (built: Feb 20 2003 14:09:35)
> Copyright (c) 1997-2002 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
>
>
> ----- Original Message -----
> From: "Kelvin Poon" <kpoon@infomart.ca>
> Newsgroups: php.general
> To: <php-general@lists.php.net>
> Sent: Wednesday, April 02, 2003 11:43 AM
> Subject: Can php run as a script?
>
>
> > Hi,
> >
> > This might be a newbie question but I can't find an answer anywhere I
> > search. I know php can be excuted by a web browser, but can it run as a
> > script like Perl?
> >
> > The reason i ask is, I need to write a php script that updates a
database
> in
> > a server. And this script needs to be running in the background as a
> > service, that's why i was wondering if I can excute it like a perl
script.
> >
> > If it can't, do you guys know if I can use perl to call up a php script?
> >
> > Please advise.
> >
> > Thanks,
> > Kelvin