Re: Problems with exec and sendfax

From: Date: Wed, 05 Sep 2001 06:16:00 +0000
Subject: Re: Problems with exec and sendfax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65998@lists.php.net to get a copy of this message
My first guess would be that sendfax wants it to have .txt on the end of it... -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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 <otto@liwest.at> Newsgroups: php.general To: <php-general@lists.php.net> 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 > http-error-log: > /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 otto@liwest.at, as i am > not subscribed to the mailing list and i do not check the newsgroup > regullary..... thank you ! > >

« previous php.general (#65998) next »