Take a look at 


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:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 10:29 AM
> 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.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to