SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 38
  1. #1
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending fax with PHP??

    Hi,
    i don't know if i am just deaming or is it really possible.

    what i want to do is, that somebody have some text they paste it into a text box and click send and the fax is sent to somebody via internet

    is it possible?
    thanks
    ---------------------------
    Errors = Improved Programming.
    My Site

  2. #2
    Old Fogey mancroft's Avatar
    Join Date
    Oct 2002
    Location
    lost
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    :

    :

  3. #3
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the link, mancroft. nice code there to use
    But, it looks like my host doesn't have pear/SOAP installed (where i am testing it), so can't really use that code
    any more, suggestions are more than welcome
    thanks
    ---------------------------
    Errors = Improved Programming.
    My Site

  4. #4
    SitePoint Wizard mark_W's Avatar
    Join Date
    Mar 2004
    Location
    West Midlands, United Kingdom
    Posts
    2,631
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think InterFax may be one of the only methods of doing this. I looked around but could only find reference's to interfax ( http://www.faqts.com/knowledge_base/view.phtml/aid/1936 )

  5. #5
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks mark.

    one more question. i saw Interfax using SOAP. how does that work. any ideas. i am just looking for general information about how the fax works online.

    thanks
    ---------------------------
    Errors = Improved Programming.
    My Site

  6. #6
    SitePoint Zealot
    Join Date
    May 2002
    Location
    RI-USA
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    May not be the best solution but I found this site when I was looking for sending Faxes on the fly: http://www.send2fax.com/

    You basically send an email to their server and it sends it out as a fax. Like 14005558686@send2fax.com will send a fax to that fax number. I'm not sure how much it is to sign up.

  7. #7
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks,

    what i want to know is, the theoratical knowledge of how to send fax with PHP and if possible some examples

    i appreciate your responses.
    ---------------------------
    Errors = Improved Programming.
    My Site

  8. #8
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,652
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Sending faxes from PHP is a bit tricky. Mainly because sending faxes requires some interaction with hardware as well as transforming the output into something a fax server can send.

    I would really look at doing it through a service rather than doing it yourself. Another option would be to pick up a dedicated fax server (we use Zetafax) which can listen to an email account and handle things that way.

  9. #9
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    or pick up a used faxpress box from ebay. you can e-mail a TIFF (or with newer versions PDF) to the faxpress box, and it will send the fax.

    you can also just drop TIFF images in a specific directory on your server, and the faxpress box will see themand send the fax. that's even easier than the e-mail solution.

  10. #10
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,652
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    God. Faxpress. I have not dealt with one of those in a long time. It still makes me feel all icky.

    I would like to point out that email is alot easier to generate from php than TIFFs or PDFs.

  11. #11
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well,
    there'd be not much generation of pdfs. the point is how to send fax from PHP. and looking at the reponses i see its quite difficult (if not impossible). i'll keep an eye open for other suggestions or scripts, but for the time being i see no hope for this
    ---------------------------
    Errors = Improved Programming.
    My Site

  12. #12
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jaswinder_rana
    thanks mark.

    one more question. i saw Interfax using SOAP. how does that work. any ideas. i am just looking for general information about how the fax works online.

    thanks
    SOAP is a protocol which allows code to interact with other code over a network at data level. It is based on XML. So for instance it allows for transferring data structures, along with their types. One can effectively do a remote function call over a network by submitting, and then receiving a response.

    It may be the case that there already exists a PHP library for connecting with Interfax and sending faxes. If not, you may be able to use a third-party SOAP library that does not require PEAR.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  13. #13
    There is no general chat z0s0's Avatar
    Join Date
    Aug 1998
    Location
    Melbourne
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This probably won't be that useful to you specifically, but for the general case:

    If you're running PHP on a *nix box with a fax/modem, a phone line, and can install a copy of Hylafax (free).. this should do the trick for simple text:

    Code:
    // Create a temp file to store the message in
    $tmpfname = tempnam ("/tmp", "FOO");
    
    $fp = fopen($tmpfname, "w");
    fwrite($fp, $this->message);
    fclose($fp);
    
    // Call Sendfax:
    // Note the "0,," hack to get an outside line
    $command = "/usr/local/bin/sendfax -n -d \"0,,".$phone_number."\" -f \"From Name, Number\" $tmpfname";
    
    exec($command);
    
    unlink($tmpfname);
    Wormly Server Performance Monitoring
    Don't wait for an SMS at 4am. Find out what's really
    going on and fix the problem. www.wormly.com/website-monitoring

  14. #14
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Australia
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You did specify that you wanted to send using the Internet. In that case you will require the use of an online fax provider or setup your own infrastructure. The former being much simpler and cheaper.

    Some online fax providers will let you send a fax using email. Usually you just address the email to faxnumber@faxprovider.com and enter some text to send in the body of the email.

    That is by far the simplest way to send a fax from PHP. As it is as easy as using the mail function. Any other way is going to require SOAP, XMLRPC or posting to an (often complex) HTTP(s) interface.

    Checkout www.faxbeep.com for a list of providers. Then just pick one that does email2fax.

    If you want to invest money in your own infrastructure then Hylafax can be as a fax server and I believe there are some classes out there for PHP that can submit a fax.

  15. #15
    SitePoint Addict
    Join Date
    Jan 2003
    Location
    Toronto
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jaswinder_rana
    Thanks for the link, mancroft. nice code there to use
    But, it looks like my host doesn't have pear/SOAP installed (where i am testing it), so can't really use that code
    any more, suggestions are more than welcome
    thanks
    You should be able to install PEAR in a subdirectory in your space. http://go-pear.org I believe.

  16. #16
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, everybody
    first i thought i was trying to do impossible.

    well, i checked my host and they installed soap. i am going to try the script by interfax(which actually uses there soap server, i assume).

    while i liked the oter sugestions about having our own server, but i think that'd be too much in our case.

    but again, thanks everybody for clarifying this matter to me.

    if you think there is something i am missing, please mentio it here for me.

    thanks
    ---------------------------
    Errors = Improved Programming.
    My Site

  17. #17
    SitePoint Addict iMatt's Avatar
    Join Date
    Apr 2005
    Location
    New Jersey, USA
    Posts
    223
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In my opinion, thats a bad idea. You're giving people the option of wasting all of your toner and paper by sending random faxes. It's like setting up a mail-sender on your site where you can input the number to send. Some people will use it against you.

    Just my two cents.

  18. #18
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i am not the one who is providing this service. its interfax. i was just testing it. and if it works i can use it to send faxes to my clients (which i need for some reason) and it'll also save me some money for sending faxes.
    ---------------------------
    Errors = Improved Programming.
    My Site

  19. #19
    SitePoint Addict iMatt's Avatar
    Join Date
    Apr 2005
    Location
    New Jersey, USA
    Posts
    223
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, I see. So you are sending the faxes? Sorry, I thought people could send faxes to you such as a form mailer sends emails to you.

  20. #20
    SitePoint Enthusiast julieCanada's Avatar
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by iMatt
    In my opinion, thats a bad idea. You're giving people the option of wasting all of your toner and paper by sending random faxes. It's like setting up a mail-sender on your site where you can input the number to send. Some people will use it against you.

    Just my two cents.
    Faxes don't have to be printed. Actually a lot of people and businesses use a computer program for faxes such as Lightning Fax where all your faxes arrive at your computer instead of arriving at an external fax machine. You can print only the ones you need.

    That was just 'my two cents' regarding faxes

    Julie :-)

  21. #21
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think its e-fax right, well actaully in my case i need it to go to fax
    ---------------------------
    Errors = Improved Programming.
    My Site

  22. #22
    SitePoint Addict iMatt's Avatar
    Join Date
    Apr 2005
    Location
    New Jersey, USA
    Posts
    223
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, I've never heard of e-faxes before.

  23. #23
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually its fax in your email
    take a look here for definition
    http://www.google.ca/search?hl=en&lr...&q=define:Efax
    http://en.wikipedia.org/wiki/Efax
    ---------------------------
    Errors = Improved Programming.
    My Site

  24. #24
    Non-Member Musicbox's Avatar
    Join Date
    Nov 2004
    Location
    india
    Posts
    1,331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have yahoo mail just login and see on the left bottom side text ads are displayed which says to get your free fax number just click on the link and get your free international fax number.

  25. #25
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Musicbox
    If you have yahoo mail just login and see on the left bottom side text ads are displayed which says to get your free fax number just click on the link and get your free international fax number.
    thanks, but i am not looking for a service which i can use,
    i am looking for a method to send fax over PHP.
    ---------------------------
    Errors = Improved Programming.
    My Site


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •