Re: Program Execution and reading results

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

 



2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta:
> > hmm I thought the OP's question was about how can he get output/return
> > value from the external program (the file name for example) - maybe it
> > was my misunderstanding
> 
> In which case I would still use shell_exec():
> 
> <?php
> 	$output = shell_exec('ls -l');
> ?>
> 

okay I admit my ignorance :)
I didn't know about the return value of shell_exec, now I checked the
manual and wow there it is...
so both can be used to get output

greets
Zoltán Németh

-- 
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