Hai,
I am using php version 4.0.2 . I have doubt that in this whether we
could run php as a command line.
Is there anything to be configured when php(4.0.2) is installed.
Or any thing to be turned on in php.ini(4.0.2) file to enable command line
access in php.
This information I got from php.net
Chapter 24. Using PHP from the command line
Since version 4.3, PHP supports a new SAPI type (Server Application
Programming Interface) named CLI which means Command Line Interface.
As the name implies, this SAPI type main focus is on developing shell
(or desktop as well) applications with PHP. There are quite some
differences between the CLI SAPI and other SAPIs which are further
explained throughout this chapter.
The CLI SAPI was released for the first time with PHP 4.2.0, but was
still experimental back then and had to be explicitely enabled with
--enable-cli when running ./configure. Since PHP 4.3.0 the CLI SAPI is
no longer experimental and is therefore always built and installed as
the php (called php.exe on Windows) binary.
Bye & Regards,
S.Arun Srinivasan
On Sat, 13 Jul 2002, Joshua Hoover wrote:
> You will need to make sure that PHP is compiled as an executable as well as
> a module. The PHP executable is normally placed under /usr/bin/php You can
> then call PHP just as you would Perl.
>
> Hope that helps,
>
> Joshua Hoover
>