Re: run du command uder php

From: Date: Sat, 28 Apr 2001 11:28:59 +0000
Subject: Re: run du command uder php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50747@lists.php.net to get a copy of this message
you might want to consider add the html PRE tag, to preserve the output format. Something like, > exec ("du -ks /home/apache",$test[]); echo " <pre>$test[0] </pre>"; This will display the result in the browser, just as it does in the Unix shell. __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+- On Sat, 28 Apr 2001, Mark Lo (3) 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#50747) next »