Re: php and linux shell script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <balwantsingh@xxxxxxxxxxxxx> 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
> balwantsingh@xxxxxxxxxxxxx
> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux