faxing from php

This is a discussion on faxing from php within the PHP Language forums, part of the PHP Programming Forums category; Hi, I use W2K/IIS5/PHP432. COM is enabled, and works for excel/word exports. Now I'd like to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-05-2003
Ward Germonpé
 
Posts: n/a
Default faxing from php

Hi,

I use W2K/IIS5/PHP432.
COM is enabled, and works for excel/word exports.
Now I'd like to be able to fax from my application.

The PHP code below doesn't issue warnings, but the modem remains silent.
The equivalent code in VB however does send faxes all right.

Any thoughts ? In the dcomcnfg menu there a list of potential comservers
like word/excel, but no mentioning of the faxservice.


thx

Ward


<?php
$FS= new COM("FaxServer.FaxServer") or die ("no fax");
$filename="D:/temp/testfax.doc";
$FD = $FS->CreateDocument($filename);
$FS->Connect("dispatch-svr");
$FS->Retries=1;
$FS->RetryDelay=1;
$FD->FaxNumber="021234567";
$FD->Send;
$FS->Disconnect;
?>


Public Sub fax()
Dim FS As New FaxServer
Dim FD As New FaxDoc
Dim FileName As String

FileName = "d:\temp\testfax.doc"
Set FD = FS.CreateDocument(FileName)
FS.Connect ("dispatch-svr")
FS.Retries = 1
FS.RetryDelay = 1
FD.FaxNumber = "021234567"
FD.Send
FS.Disconnect
End Sub
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0