Question

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?

Was it helpful?

Solution

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()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top