设置传真服务器

一位客户要求一个networking传真应用程序用PHP编写。 但我不知道如何做到这一点。

我相信PHP或任何其他Web应用程序无法 直接与调制解调器通信。 所以应该有某种服务或守护进程来处理这个工作,并成为Web界面和调制解调器之间的界线。

尝试了一些Googlesearch的东西,一些像AvantFaxAvantFax这样的AvantFax出来了。 还是无法弄清楚。

我更喜欢自己编写Web界面,以获得自定义语言支持和更好的用户体验。

所以最终我所要求的是如何从头开始实现networking传真应用程序。 从设置服务器和制作Web应用程序。 即使有些方向也会有帮助。

安装HylaFAX并通过PHP的exec或系统调用调用sendfax命令行选项。

如果您的客户是灵活的, DeliveryWare可能是一个很好的select。

除了学习PHP,interfax看起来很简单。

  1. 为了testing,请按照说明在这里 。
  2. 一旦您的testing完成,如果您需要传真至多个号码,请按照这些说明设置付费帐户。
  3. 此外,如果通过这种方式发送敏感信息(PII,CC#等),请务必使用SSL。

编辑如果你还没有服务器设置,你可能会想要去一个LAMP堆栈。 Ubuntu服务器的安装应该做的伎俩。

请确保让每个人都知道您最终select的解决scheme。 随着电子邮件和谷歌机器的发明,我想有没有这样的传真需要了。

  /**************** Settings begin **************/ $username = ''; // Enter your Interfax username here $password = ''; // Enter your Interfax password here $faxnumber = ''; // Enter your designated fax number here in the format +[country code][area code][fax number], for example: +12125554874 $texttofax = 'My text goes here'; // Enter your fax contents here $filetype = 'TXT'; // If $texttofax is regular text, enter TXT here. If $texttofax is HTML enter HTML here /**************** Settings end ****************/ $client = new SoapClient("http://ws.interfax.net/dfs.asmx?wsdl"); $params->Username = $username; $params->Password = $password; $params->FaxNumber = $faxnumber; $params->Data = $texttofax; $params->FileType = $filetype; $faxResult = $client->SendCharFax($params); print_r($faxResult); ?>