Reply to Re: Command line from php

Your name:

Reply:


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

[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

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