Only ever used HylaFax but this should be real easy using the control commands that come with FaxPress. It's not windows right?
All you'd need are a few system()'s, and would only work if you had the binaries on the same machine as the web server unless...
The FaxServ we used to use also listened on a socket, not sure what your set-ups gonna be like, but a read of the manual might get you further 😉
OT Madness :::::-)
HTH,