Re: Program Execution and reading results

From: Date: Thu, 21 Jun 2007 10:15:45 +0000
Subject: Re: Program Execution and reading results
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-257544@lists.php.net to get a copy of this message
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

« previous php.general (#257544) next »