php-general | 2001032
Date: 03/27/01
- Next message: Joe Sheble (Wizaerd): "Re: [PHP] search safe URLs"
- Previous message: Augusto Cesar Castoldi: "[PHP] form and php"
- In reply to: Steven Shepherd: "[PHP] "DF" output"
- Next in thread: Steven Shepherd: "Re: [PHP] "DF" output"
- Reply: Steven Shepherd: "Re: [PHP] "DF" output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
nobody has execute permission on ps?
Probably quite the opposite, your webserver user doesn't have execute
permission on ps, so there is no execution or return value.
"Steven Shepherd" <steven <email protected>> wrote in message
news:Pine.A41.4.21.0103271214080.47822-100000 <email protected>
> I am writing a script, actually modifying PhPSysInfo to include the top
> processes used on a machine. So far, no matter what I do, I can only get
> it to work via the command line. I get a blank screen when trying it via
> the browser:
>
> Tried this:
>
> <?php
> $data = `ps auxwww`; echo nl2br($data);
> ?>
>
> ------------------------------------------------
> and this:
>
> <TT>
> <PRE>
> <?php
> exec("/usr/bin/top n 1 b | head -8 | sed 's/[\$|^M]//g'", $top);
> while (list(,$line) = each($top)){
> echo $line, "<BR>\n";
> }
> ?>
> </PRE>
> </TT>
>
> I used sed to remove control characters..etc. Again, both examples above
> work via the command line, but not via a browser. User "www" is able to
> run this command as well, so it's not permissions. Help?! :)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joe Sheble (Wizaerd): "Re: [PHP] search safe URLs"
- Previous message: Augusto Cesar Castoldi: "[PHP] form and php"
- In reply to: Steven Shepherd: "[PHP] "DF" output"
- Next in thread: Steven Shepherd: "Re: [PHP] "DF" output"
- Reply: Steven Shepherd: "Re: [PHP] "DF" output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

