Re: run du command uder php

From: Date: Sat, 28 Apr 2001 20:09:52 +0000
Subject: Re: run du command uder php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50738@lists.php.net to get a copy of this message
On Saturday 28 April 2001 04:56, you wrote: > Hi, > > I would like to know how to run du command under PHP. > > is this correct ?? > > exec ("du -ks /home/apache",$test[]); > echo $test[0]; --> I would like to print out the result in web browser > > Thank you > > Mark u can use backtick, exec(), system(), passthru() make sure you read manual first before choosing the right one ie; <? $ps ="ps ax"; echo"<pre>result:\n"; $result = system($ps); ?>

« previous php.general (#50738) next »