• we are trying to get the php_printer.dll extension to work.
  • we run PHP 5.2.8 with Apache 2.2 on a windows XP platform.
  • When we start Apache it fails to load the extension with the following error
Php Code
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_printer.dll' - The specified module could not be found.\r\n in Unknown on line 0
[ad type=”banner”]
  • we have searched long and hard for a solution and have found lots of posts regarding this but nothing has worked so far.
  • php.ini has “extension=php_printer.dll” and “extension_dir=”C:\Program Files\PHP\ext
  • The file is located in the Extension folder and we downloaded the file from www.dlldll.com/php_printer.dll_download.html
  • The file is 36Kb and dated 22.1.2004

  • Apache don’t understand php.ini relative paths in Windows Systems.
  • In PHP manual we have an How-to install Apache 2.x on Microsoft Windows. One of the comments suggests using absolute paths.
  • So, try changing the relative paths in your php.ini to absolute paths.
Php Code
extension_dir="C:\full\path\to\php\ext"

  • Use absolute path:
Php Code
extension_dir="C:\full\path\here"

  • Re: PHP Warning: PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.13/ext/php_ldap.dll‘ – The specified module could not be found.
  • The files are located in two places:
    \wamp\bin\apache\apache2.2.22\bin and \wamp\bin\php\php5.3.13.
  • Putting the two in the apache folder into the Windows path didn’t seem to work, so put the php5.3.13 into the path and rebooted the server and that seemed to work.
  • Although, we may have just needed to restart the server.

  • Run phpinfo(). Find line: Loaded Configuration File and look at extension_dir too.
  • If it is c:\php and it is not the folder you have your php installed in then open the loaded configuration file and edit the line.
Php Code
extension_dir = C:\php
to
extension_dir = C:\wamp\bin\php\php5.4\ext

[ad type=”banner”]

or something similar. Restart WAMP.

  • You should make sure libmysql.dll is installed on your computer, you can look for it under C:\Windows\System32 (in Windows 7, or the equivalent in other windows versions).
  • This is specified in the php manual. You can download libmysql.dll here. This bug took me quite some time to solve.

[mks_button size=”medium” title=”Download libmysql.dll” style=”rounded” url=”https://www.dllme.com/dll/files/libmysql_dll.html” target=”_blank” bg_color=”#1e73be” txt_color=”#FFFFFF” icon=”fa-arrow-down” icon_type=”fa” nofollow=”1″]

  • You need to install the following combination’s for better printing solution:
PHP 5.2.6
MySQL 5.0.45
Apache 2.2.9

  • To run php_intl you also have to copy the icu*.dll files from the php folder to the \wamp\bin\apache\apachex.y.z\bin folder
  • With WampServer 2.5, this is done automatically by symbolic links.
  • You can reload the PHP version by Wampmanager-menu> PHP-> 5.5.12 although this version is validated. Symbolic links will be created again.

Categorized in: