If one can make a fax program in C/C++, one can make the same thing in PHP. You may have to make the PHP program work with that C/C++ program, however. For instance, write a program that listens on a certain port and then sends faxes upon getting a connection. A PHP script could then connect, send the info, then disconnect.
Theoretically it's possible.