I have a program running on my command line. The program allows one to type in a username and returns a bunch of information pertaining to that user. I assume it is possible to access this program from php, and even store the information in a variable. Anyone know how to do this though?
Thanks in advance for the advice
try using the
system()
command.http://php.net/manual/en/function.system.php
or
exec()
http://www.php.net/manual/en/function.exec.php
This link should help you. A quick example:
Read the documentation for system() and exec(), it should what you need.