Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Help



Or using windows enviroment...

$faxtosend = COM("WHFC.OleSrv");
...
$faxtosend->SendFax("myfile.ps", "123-4567", TRUE); # file name, phone
number, TRUE (see documentation)
...


To see your log record (xferfaxlog) ...

Put Apache working in your Hylafax server box.
Create a symbolic link in your "www" directory to xferfaxlog.
create one script in PHP to read this file and search for you log.

like this...


<?php
    $url = "http://192.168.1.5/xferfaxlog.txt";
    $package = join('', file($url));

    $lines = explode(chr(10),$package);
    $count=0;
    foreach ($lines as $values) {
        $value = explode(chr(9),$values);
        echo $value[0].' '.$value[1].' '.$value[7].' '.$value[13]."<BR>";
        $count++;
    }
    echo "$count<BR>";
?>

any question?

Marc

----- Original Message -----
From: "Lee Howard" <faxguy@deanox.com>
To: "francesco" <francesco@francesco.dazza.org>
Cc: <hylafax-users@hylafax.org>
Sent: Thursday, February 28, 2002 11:21 AM
Subject: Re: [hylafax-users] Help


> On 2002.02.28 01:50 francesco wrote:
> > There is a manner to generate some file in php, to put them in the spool
> > directory and to send them by hylafax server?
>
> Learn your PHP.
>
> <? system("sendfax -d 12345 myfile.ps"); ?>
>
> Lee.
>
> ____________________ HylaFAX(tm) Users Mailing List
_______________________
>  To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org <
/dev/null
>


____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services