I am trying to set up the network printers at work to print from a webpage.
I have removed the ';' infront of the extension line in the php.ini and i have downloaded the php_printer.dll from http://kromann.info/pecl.php
i restarted my server and everything seems normal
i have tried to strart with this simple php script off www.php.net printer functions documentation:
<?php
var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED));
?>
and i get this message in a windows error box
php.exe - Entry Point Not Found
The procedure entry point php_error_docref0 could not be located in the dynamic link library php4ts.dll
I click OK and get the following popup
Warning
Unable to load dynamic link library './extensions/php_printer.dll' - The specified procedure could not be found.
I click OK again and i get this in my web browser
X-Powered-By: PHP/4.1.1 Content-type: text/html
Fatal error: Call to undefined function: printer_list() in c:\apache\htdocs\test\printer.php on line 2
in fact any of my php pages are giving this exact error
I have put the php_printer.dll in the correct place i am quite familiar in loading extensions and things
I am running PHP version 4.1.1
Does anyone have any pointers?