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

Reply via email to