You are here: Command line from php « All PHP « IT news, forums, messages
Command line from php

Posted by wesley on 11/13/06 08:55

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?

Thanks
Wes

 

Navigation:

[Reply to this 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

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