views:

80

answers:

1

I'm writing an in-house module to generate a small LaTeX PDF. Within the module, how do I use PHP to utilize the command line?

+3  A: 

I think what you are looking for is the function: passthru() if you want to directly send the output of your command.

Or if you run your command that command creates a file in the sever and then you send that file to the user use the command exec()

elviejo
The link for the passthru documentation page is http://php.net/manual/en/function.passthru.php.
kiamlaluno