[PHP] typerules and german umlauts

2001-09-03 Thread Otto Brandstätter

Hello !

i have the following problem:

when using sendfax for sending a german text file including german
umlauts, i get: cannot determine file type ?!?
does anyone know how to modify typerules to handle that file type
correctly ?

one strange thing: when i try to sendfax from the shell, everything
works fine.
when trying it from within php, the error occurs ?!?
i even tried it as user nobody (= apache-user) in a shell it works
fine when i tried it from within php, it doesn´t... :-(((

it would be great if anyone could give me a hint

thank you !

ps: please reply also to [EMAIL PROTECTED] as i am not subscribed to the
mailing list. thanks a lot !


-- 
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]




[PHP] Problems with exec and sendfax

2001-09-02 Thread Otto Brandstätter

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 [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]