Re: [PHP] php and linux shell script

2005-04-19 Thread Rory Browne
 http://gtk.php.net/
 

Can you elaborate on what gtk has to do with making command line dialog boxes?


 --
 Like Music?
 http://l-i-e.com/artists.htm
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and linux shell script

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 2:24 pm, Rory Browne said:
 http://gtk.php.net/


 Can you elaborate on what gtk has to do with making command line dialog
 boxes?

Well, you run it from the command line.

And it makes dialog boxes.

Maybe not the kind of dialog boxes you wanted or whatever, but that pretty
much sums up GTK PHP in a nutshell...

One should also consider http://php.net/ncurses, but that was already
referenced, I do believe.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and linux shell script

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 11:52 pm, Balwant Singh said:
 1) first of all i would like to inform you that i have made a PHP script
 which also have some amount of
 linux shell script in it for converting emails from EVOLUTION to MOZILA
 THUNDERBIRD just by executing
 this script.  if anybody need it, do let me know, i will send the same.

 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.

http://gtk.php.net/

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php and linux shell script

2005-04-15 Thread Balwant Singh
hello, 

1) first of all i would like to inform you that i have made a PHP script which 
also have some amount of 
linux shell script in it for converting emails from EVOLUTION to MOZILA 
THUNDERBIRD just by executing
this script.  if anybody need it, do let me know, i will send the same.

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.

thx


with best wishes
balwant singh
[EMAIL PROTECTED]
0091-120-2568472

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and linux shell script

2005-04-15 Thread Rory Browne
I don't think you'll find anything in PHP as simple as the shell
script version of dialog, but you may be able to bang something
together like that using ncurses.

Probably handier if your time is more important than the machines, to
just use the shell version using one of the Program Executions
functions.

Personally I suggest passthru:
?php

function yesno($str){
  $tmpvar = 0; // to avoid E_NOTICE
  passthru(dialog --yesno  . escapeshellarg($str) .  200 10, $tmpvar);
  return $tmpvar;
}

?


On 15 Apr 2005 12:22:05 +0530, Balwant Singh [EMAIL PROTECTED] wrote:
 hello,
 
 1) first of all i would like to inform you that i have made a PHP script 
 which also have some amount of
 linux shell script in it for converting emails from EVOLUTION to MOZILA 
 THUNDERBIRD just by executing
 this script.  if anybody need it, do let me know, i will send the same.
 
 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.
 
 thx
 
 with best wishes
 balwant singh
 [EMAIL PROTECTED]
 0091-120-2568472
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and linux shell script

2005-04-15 Thread Andy Pieters
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/
--

--


sas_php_script.php
Description: application/php
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php