[lug] quick php question for including cli output

Faster-Laster jason at fasterlaster.com
Wed May 30 13:54:47 MDT 2001


Works for me, what errors are you getting?

On Wed, May 30, 2001 at 02:59:32PM -0500, charles at lunarmedia.net wrote:
> i'd like to take the output from a command and echo it to a webpage using
> php. i had thought that something like
> 
> $message = `du -sH /home`;
> 
> would put the info into a variable that i could then call via echo. to say
> the least, its just not working out for me. i am sure this is a simple
> one, and in fact, i've done it before, but i've lost my reference and i
> can't find the info on php.net
> 
> thanks -cjm
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 

-- 
+----------------------------------------------------------------------+
|Running Windows on an Athlon is like having a brand new Porsche but   |
|only be able to drive backwards with the handbrake on.                |
+------------------------------------------------------------zoom------+
| Faster-Laster                                 jason at fasterlaster.com |
+----------------------------------------------------------------------+



More information about the LUG mailing list