Reply to Re: [PHP] php and linux shell script

Your name:

Reply:


Posted by Rory Browne on 09/29/43 11:13

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@indoasian.com> 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@indoasian.com
> 0091-120-2568472
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация