Re: ps command in php

From: Date: Mon, 06 Oct 2003 08:37:03 +0000
Subject: Re: ps command in php
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-165159@lists.php.net to get a copy of this message
Michael P. Carel wrote:
When I do this: <?header("Content-Type: text/plain"); $ps = (passthru("ps -ef)); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr>
    <td width="100%" height="287" valign="top"><? echo $ps;  ?></td>
</tr> </table> I can also see the HTML code, i need to put the output inside the table. Is there any solution for this?
Just remove first line of Your code or replace 'text/plain' with 'text/html'. And put <? echo $ps; ?> inside <PRE>-tags, as anwsered previously. -- Pavel a.k.a. Papi

« previous php.general (#165159) next »