Re: php and linux shell script
| From: | Andy Pieters | Date: | Fri, 15 Apr 2005 21:23:58 +0000 |
| Subject: | Re: php and linux shell script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213165@lists.php.net to get a copy of this message | ||
On Friday 15 April 2005 08:52, Balwant Singh wrote:
> 2) i am also exploring possibilities of using linux dialog boxes (used in
> shell scripting) with PHP. has anybody tried it, may please advise me how
> to call dialog boxes through PHP in CLI. also please share with me if u
> have information on how to use PHP with Shell Scripting.
>
Hi
I like to think of PHP as a stream programming language. You can use it to
generate a stream of html documents, images, sound files, text files, etc etc
etc.
So why shouldn't you use it to make your own dialogs in it as well?
Make an include file that contains the classes, then just declare your class
and use it.
Like
$mydialog=new clsDialog;
$mydialog->type=DIALOGTYPE_INPUTBOX;
$mydialog->title="Provide some information";
$mydialog->regexp="$xxx^";
$result=$mydialog->showDialog();
unset($mydialog);
Off course the limitations are second to none!
I have released some PHP CLI scripts under the terms of GPL2 and they all use
the same basic simple engine for argument processing. It may not suit your
needs, but you're welcome to study it to get you started.
With kind regards
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
under the GPL2 and that are meant for use with a
php cli binary:
http://www.vlaamse-kern.com/sas/
--
--
Attachment: [application/x-php] sas_php_script.php
Attachment: [application/x-php] sas_php_script.php