Re: ps command in php
| From: | Michael P. Carel | Date: | Tue, 07 Oct 2003 00:05:37 +0000 |
| Subject: | Re: ps command in php | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165256@lists.php.net to get a copy of this message | ||
thanks to all its working now
> 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