Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

How to send Fax using PHP

my question is there in title
0
carchitect
Asked:
carchitect
  • 7
  • 2
  • 2
  • +1
1 Solution
 
ag0nyCommented:
You can't do it directly from PHP. You will have to call an external fax program. If you're in a UNIX environment, hylafax will do the job nicely. You can use PHP to preprocess all the parameters you need, and then pass all the required information to the hylafax program.
0
 
carchitectAuthor Commented:
thx for the help
i got this softwar on hotscripts and i will try to use it...
i am on linux....
regards
0
 
carchitectAuthor Commented:
how to use it
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ag0nyCommented:
That's a different question. :)
0
 
carchitectAuthor Commented:
ha ha
not a different question, if you can it will be helpfull.
well i am on window's platform for testing but will be uploading on linux...
so asking how to make setup on windows...
i tried but getting rpm files only...
is there any windows binary availabe....
0
 
VGRCommented:
I don't know free solutions for Win32.
0
 
carchitectAuthor Commented:
wel..thx for the reply..
but at last i have to put it on linux only...so how to use
hylafax do you know
0
 
Richard QuadlingSenior Software DeverloperCommented:
Quite often, windows fax servers are just another printer.

Something which works quite well (was on Novell, may be for other platforms too) is ToBit FaxWare.

If a plain text document is sent, then the header would be ...

@@NUMBER+441752123456@@

(or similar).

The line with the number on it would be removed from the output and parsed for the telephone number.

I use this system for a client running Sage Line 100 Accounting to send out Purchase Orders to suppliers and Statements to customers automatically. The software simply prints to an existing print queue, though there is also a file drop method available. You create a file with all the details in it and move it to the "Send" folder and ToBit picks it up and goes with it.

You can include cover sheets, images, pre-printed layouts, etc.

Richard.
0
 
carchitectAuthor Commented:
Well Thx for the reply RQuadling
but i am unable to get your idea completely...
my client has got a website and we generate a workorder for him , he wants to fax it, so can i use hylafax...
0
 
Richard QuadlingSenior Software DeverloperCommented:
Sorry. I missed the bit "for testing".

I think (though I may be wrong) that hylafax is not a PHP component, but a server service.

Once installed, you would use ...

exec('sendfax -f "myname@mydomain.com" -R -r "faxsubject" -c "coverpage comments" -x "Recipient's company" -d "Recipient@1234567" tofax.ps');

Maybe.

(http://www.hylafax.org/howto/faxing.html#ss5.1)

Richard.
0
 
carchitectAuthor Commented:
o thx alot
0
 
VGRCommented:
could you please post the solution you came up with ?
0
 
carchitectAuthor Commented:
sorry as i just wanted to close didn't find answer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now