我試圖找到將現場訂單發送到收據打印機的解決方案。使用PHP打印到外部收據打印機使用PHP
基本上以僞代碼:
if ($order == 'success')
{
$printer = ip.to.remove.printer;
$receipt_text = 'You just received an order!';
$ch = curl_init('http://addresstosomekindofapi.com/print_receipt/');
curl_setopt($ch, SOME_OPTION, 0).............;
curl_exec($ch);
curl_close($ch);
}
我只是探索能完成這一操作選項。能夠做到這一點真是太棒了,而不是發送通常會捆綁線路等的傳真等。
怎麼能這樣做?
下載你試過jZebra嗎?良好:直接與連接到客戶端工作站的打印機進行對話。不好:需要java。看看:http://code.google.com/p/jzebra – Fatbuttlarry 2012-02-28 03:44:34