php_printer.dll

Hi everybody,

I’m trying to use php_printer.dll but without success : I get this message

Fatal error: Call to undefined function printer_open() in…

I added : extension=php_printer.dll in php.ini
put this dll in ext directory

but doesn’t work …

Here is the sample code :

$lipsum=“Text to print”;
// $addr = ‘\\192.168.0.8\Canon MF4320-4350’;
// print $addr;
$addr=“HPOfficejet”;
$printer = printer_open($addr);
printer_write($printer, $lipsum);
printer_close($printer);

Thanks for your help
Nac
i’m using easyphp.12.1 with php.5.4.6

phpinfo say extension is active?
I’m not sure, but I remember checking it and I think this extension is discontinued since more than 5 years ago. Try this:
http://stackoverflow.com/questions/5694144/printing-over-network-from-php-app

Yes I read that it’s obsolete !!!
I will try your link
Thanks Giu