![]() |
Hi, I'm developing a little php3 script in order to have a html frontend to Hylafax. When the script is completely finished, it should be possible to select the destinary from a HTML dropdown menu (connected to a postgres RDBMS -that's what I'm using) and all outgoing fax' would as well be stored in a RDBMS table so that searching the archive is more easy. But I'm having one problem untill now with sendfax. The php script calls sendfax directly, so that we can choose all options ourselves. So according to the man pages the commandline construct should be : sendfax[-options] file The php script creates for every outgoing fax a /tmp/fax.<$time> file and is called in the script by $fax ($fax = "/tmp/fax.$time"; $time = time() - we used this in order to make every fax.*file "unique) Now when we call sendfax [-options] $fax, sendfax hangs But when we call sendfax [options] /tmp/fax.94512356, this works, allthough $fax refers to the same file ... Is there a workaround? Is there a way that sendfax would accept input from STDIN so that we could do something like this This would even be faster/cleaner to do. $message = <HTML form entered message>; $command = "sendfax [options]"; #now we execute the external program passthru(more $message | $command); Looking forwards for your input. Didier Legein mosaic bvba