I recently upgraded from XAMPP 1.7.3 to 1.8.1. This is a change that was needed for the newer versions of APACHE and MySQL.
Currently I am working on a Windows 7 Pro Machine, but I will be installing it on a Windows XP Pro and a Windows Server 2008 r2.
One of the most important pieces to my script is the ability to print RAW data to printers using the printer functions by way of php_printer.dll
- Code: Select all
printer_set_option($handle, PRINTER_MODE, "RAW");
After receiving the error: " Fatal error: Call to undefined function printer_open() in ~". I checked the php_error_log and received the following information.
PHP Warning: PHP Startup: printer: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
I've looked for hours trying to find a pre-compiled php_printer.dll for PHP 5.4.7 to no avail. I have concluded that I will have to compile it from source files in the PECL. http://pecl.php.net/package/printer
Having never had to do this before I did what any internet user should do. I googled it and found some information.
https://wiki.php.net/internals/windows/stepbystepbuild
http://board.phpbuilder.com/showthread.php?10374806-How-to-compile-PHP-from-Source-on-Windows
But both of these are outdated and aren't from the stand point of a XAMPP user. I feel like I've used the simplicity of XAMPP as a crutch and feel very much out of my league. So, I'm hoping for 1 of 2 things. That some one might be able to help me compile a dll correctly for XAMPP 1.8.1 / PHP 5.4.7. Or that someone is already set up to compile dlls for XAMPP 1.8.1 and can quickly compile a php_printer.dll.
Thank you for your time, Greatly appreciated.