RE: [PHP] A real simple question...
| From: | UGBI) | Date: | Wed, 30 Jan 2002 09:29:28 +0000 |
| Subject: | RE: [PHP] A real simple question... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82695@lists.php.net to get a copy of this message | ||
Take a look at
exec()
passthru()
system()
Keep in mind that the webserver usally runs as User nobody or an equivilant
of that. So this user should have rights to run the program.
Kind Regards,
Jerry Verhoef
> -----Original Message-----
> From: Liam MacKenzie [mailto:dj_phatt@vectorstar.net]
> Sent: Wednesday, January 30, 2002 10:29 AM
> To: php-general@lists.php.net
> Subject: [PHP] A real simple question...
>
>
> Hey everyone,
>
> Got a question...
>
> How to I run a program and print it's output into a document?
> For instance, I have a program called "ftpusers" and when run
> from a shell like this:
> /usr/local/misc/ftpusers
> It will display a plain text list of people connected to my server.
>
> How do I get PHP to call that program and print it's output
> into a webpage?
>
>
> Thanks for your help!
>
>
> Liam
>
The information contained in this email is confidential and
may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any
form of disclosure, production, distribution or any action
taken or refrained from in reliance on it, is prohibited and
may be unlawful. Please notify the sender immediately.
The content of the email is not legally binding unless
confirmed by letter bearing two authorized signatures.