My first guess would be that sendfax wants it to have .txt on the end of
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Otto Brandstätter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 02, 2001 6:15 PM
Subject: Problems with exec and sendfax
> Hallo !
> i have some problems when trying to use senfax from halyfax within php.
> i am using php4 on a redhat 6.2 box with the recent version of hylafax
> and apache.
> well, i am using the following code:
> $fd = fopen($tmpPath . $delivery_number, "w");
> set_file_buffer($fd, 0);
> $size = fwrite($fd, $sFax);
> $result = fclose($fd);
> $sFax = "/usr/bin/sendfax -n -d 10050732314517 " . $tmpPath .
> $delivery_number . "";
> exec($sFax, $result, $errno);
> this returns the $errno 255. I also found the following entry in the
> /tmp/99472343: Can not determine file type
> when i call the sendfax command from the shell (even as user nobody) it
> works fine....
> does anyone know something about this ?
> thank you !
> otto brandstaetter
> ps: please also let me know your answers under [EMAIL PROTECTED], as i am
> not subscribed to the mailing list and i do not check the newsgroup
> regullary..... thank you !
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]