我想使用打印机扩展 PHP。所以我下载了 dll 并将其安装在我的 wamp 服务器上,但是现在,当我想打开我的打印机时,我遇到了这个问题:
这是代码:
$printer = "\\\\MARKETING1-PC\\Canon LBP2900";
if($ph = printer_open($printer))
{
$content = 'test';
// Set print mode to RAW and send PDF to printer
printer_set_option($ph, PRINTER_MODE, "RAW");
printer_write($ph, $content);
printer_close($ph);
}
else "Couldn't connect...";
错误是
Fatal error: Out of memory (allocated 1048576) (tried to allocate 4294967295 bytes) in C:\wamp\www\test\sell_report.php on line 10
也许问题是我下载的dll?