Posted by J.O. Aho on 11/13/06 11:00
wesley@ispace.co.za wrote:
> Hi All
>
> I am able to run a command line statement from php. Now i want to store
> that result from the command line and store it in a string for
> manipulation but the following line does not work 100%
>
> $string = system("ls -l");
>
> echo $string;
>
> The command line statement does run but does not get stored in the
> variable. Any suggestions?
> Am i donig something wrong?
Use exec() instead.
http://www.php.net/manual/en/function.exec.php
//Aho
Navigation:
[Reply to this message]
|