473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Jul 17 '05 #1
0 1855

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MCL | last post by:
Anybody done this before... I have found a few through web searches but not many... Anybody know of a com object or anything that interfaces with ASP to allow the faxing of messages and web...
0
by: Alex Stevens | last post by:
Hi All, We are looking for a faxing component, which we can drop into an application which would allow the user to send faxes through a faxmodem attached or a shared network modem. We've...
4
by: Bob | last post by:
I was wondering what would be the easiest way to fax a document from within a Windows .NET application. It's not enough to simple print to a fax service device. I want to be able to pass the fax...
0
by: Sam Coburn | last post by:
I want to automate faxing from access 2000 so it'll use the customer's name and fax number to automatically fax to several customers a report. How can I do this or can you point me in the right...
0
by: sachin | last post by:
Hi I am trying to implement faxing through asp.net application on Windows 2000 server. It works when i send a .txt file, but hangs when trying a word or a pdf document. Any idea what the...
0
by: CS | last post by:
Hi all, This is what I am trying to achieve. I am writing a web application to allow my users to submit their documents for faxing. I have tested it using bmp and txt file and both seems to be...
2
by: Joan | last post by:
Hi all I want to send a fax with WebService in vb.net; I use this code to send a fax with FaxService in Windows XP Dim FXServ As New FAXCOMLib.FaxServe Dim FXDoc As FAXCOMLib.FaxDo Dim iFaxJob...
2
by: willl69 | last post by:
Hi, I was just wondering if anyone knows if its possible to set up some sort of remote faxing server using PH P & apache. If not, any other prog languages or server technologies? I know .NET...
0
by: crazytegger | last post by:
Hi, I have an access report that has 2 different images on it. One is embedded, and one is a linked image. The report prints to a local printer just fine. When I try to fax the report (using WinFax)...
1
by: Diffident | last post by:
Hello All, We would like to add faxing capabilities to our application. We need to fax PDF attachments that are generated on-the-fly. Does any one know of any third party tools that have this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.