{"id":2200,"date":"2017-03-25T14:56:22","date_gmt":"2017-03-25T09:26:22","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=2200"},"modified":"2018-10-30T11:08:18","modified_gmt":"2018-10-30T05:38:18","slug":"php-_-printer-dll","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/php-_-printer-dll\/","title":{"rendered":"PHP- php_Printer.dll"},"content":{"rendered":"<h2 id=\"problem\"><span style=\"color: #ff0000;\"><label class=\"label label-Warning\">PROBLEM\u00a0<\/label><\/span><\/h2>\n<ul>\n<li>we are trying to get the<strong> php_printer.dll<\/strong> extension to work.<\/li>\n<li>we run <strong>PHP 5.2.8<\/strong> with <strong>Apache 2.2<\/strong> on a windows XP platform.<\/li>\n<li>When we start <a href=\"https:\/\/www.wikitechy.com\/tutorials\/apache\/what-is-apache\" target=\"_blank\" rel=\"noopener\">Apache<\/a> it fails to load the extension with the following error<\/li>\n<\/ul>\n[pastacode lang=\u201dphp\u201d manual=\u201dPHP%20Warning%3A%20PHP%20Startup%3A%20Unable%20to%20load%20dynamic%20library%20\u2019C%3A%5C%5CProgram%20Files%5C%5CPHP%5C%5Cext%5C%5Cphp_printer.dll\u2019%20-%20The%20specified%20module%20could%20not%20be%20found.%5Cr%5Cn%20in%20Unknown%20on%20line%200\u2033 message=\u201dPhp Code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[ad type=\u201dbanner\u201d]\n<ul>\n<li>we have searched long and hard for a solution and have found lots of posts regarding this but nothing has worked so far.<\/li>\n<li>php.ini has \u201c<strong>extension=php_printer.dll<\/strong>\u201d and \u201c<strong>extension_dir=\u201dC:\\Program Files\\PHP\\ext<\/strong>\u201c<\/li>\n<li>The file is located in the Extension folder and we downloaded the file from <strong>www.dlldll.com\/php_printer.dll_download.html<\/strong><\/li>\n<li>The file is <strong>36Kb<\/strong> and dated 22.1.2004<\/li>\n<\/ul>\n<h3 id=\"solution-1\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :1<\/label><\/span><\/h3>\n<ul>\n<li>Apache don\u2019t understand <strong>php.ini<\/strong> relative paths in Windows Systems.<\/li>\n<li>In <a href=\"https:\/\/www.wikitechy.com\/php\/learn-php-online\" target=\"_blank\" rel=\"noopener\">PHP<\/a> manual we have an <span style=\"color: #3366ff;\"><a style=\"color: #3366ff;\" href=\"https:\/\/www.wikitechy.com\/tutorials\/apache\/how-to-install-apache\" target=\"_blank\" rel=\"noopener\"><strong>How-to install Apache 2.x<\/strong><\/a> <\/span>on Microsoft Windows. One of the comments suggests using absolute paths.<\/li>\n<li>So, try changing the<strong> relative paths<\/strong> in your php.ini to absolute paths.<\/li>\n<\/ul>\n[pastacode lang=\u201dphp\u201d manual=\u201dextension_dir%3D%22C%3A%5Cfull%5Cpath%5Cto%5Cphp%5Cext%22%0A\u201d message=\u201dPhp Code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<h3 id=\"solution-2\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :2<\/label><\/span><\/h3>\n<ul>\n<li><strong>Use absolute path:<\/strong><\/li>\n<\/ul>\n[pastacode lang=\u201dphp\u201d manual=\u201dextension_dir%3D%22C%3A%5Cfull%5Cpath%5Chere%22%0A\u201d message=\u201dPhp Code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<h3 id=\"solution-3\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :3<\/label><\/span><\/h3>\n<ul>\n<li>Re: PHP Warning: PHP Startup: Unable to load dynamic library \u2018<strong>c:\/wamp\/bin\/php\/php5.3.13\/ext\/php_ldap.dll<\/strong>\u2018 \u2013 The specified module could not be found.<\/li>\n<li>The files are located in two places:<br \/>\n<strong>\\wamp\\bin\\apache\\apache2.2.22\\bin and \\wamp\\bin\\php\\php5.3.13<\/strong>.<\/li>\n<li>Putting the two in the apache folder into the <a href=\"https:\/\/www.wikitechy.com\/technology\/windows-10-free-download-full-version-iso-32-bit-64-bit-2017\/\" target=\"_blank\" rel=\"noopener\">Windows<\/a> path didn\u2019t seem to work, so put the <strong>php5.3.13<\/strong> into the path and rebooted the server and that seemed to work.<\/li>\n<li>Although, we may have just needed to <strong>restart<\/strong> the <a href=\"https:\/\/www.wikitechy.com\/tutorials\/apache\/how-to-secure-apache-web-server\" target=\"_blank\" rel=\"noopener\">server<\/a>.<\/li>\n<\/ul>\n<h3 id=\"solution-4\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :4<\/label><\/span><\/h3>\n<ul>\n<li><strong>Run phpinfo()<\/strong>. Find line: Loaded Configuration File and look at extension_dir too.<\/li>\n<li>If it is<strong> c:\\php<\/strong> and it is not the folder you have your php installed in then open the loaded configuration file and edit the line.<\/li>\n<\/ul>\n[pastacode lang=\u201dphp\u201d manual=\u201dextension_dir%20%3D%20C%3A%5Cphp%0A%20%20%20%20%20%20%20%20%20%20%20%20%20to%20%0Aextension_dir%20%3D%20C%3A%5Cwamp%5Cbin%5Cphp%5Cphp5.4%5Cext%0A\u201d message=\u201dPhp Code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<p style=\"top: 138px;\">[ad type=\u201dbanner\u201d]\n<p>or something similar. <strong>Restart WAMP.<\/strong><\/p>\n<h3 id=\"solution-5\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :5<\/label><\/span><\/h3>\n<ul>\n<li>You should make sure <strong>libmysql.dll<\/strong> is installed on your computer, you can look for it under <strong>C:\\Windows\\System32<\/strong> (in Windows 7, or the equivalent in other windows versions).<\/li>\n<li>This is specified in the php manual. You can download libmysql.dll here. This bug took me quite some time to solve.<\/li>\n<\/ul>\n<p style=\"text-align: center;\">[mks_button size=\u201dmedium\u201d title=\u201dDownload libmysql.dll\u201d style=\u201drounded\u201d url=\u201dhttps:\/\/www.dllme.com\/dll\/files\/libmysql_dll.html\u201d target=\u201d_blank\u201d bg_color=\u201d#1e73be\u201d txt_color=\u201d#FFFFFF\u201d icon=\u201dfa-arrow-down\u201d icon_type=\u201dfa\u201d nofollow=\u201d1\u2033]\n<h3 id=\"solution-6\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :6<\/label><\/span><\/h3>\n<ul>\n<li>You need to install the following combination\u2019s for better printing solution:<\/li>\n<\/ul>\n[pastacode lang=\u201dphp\u201d manual=\u201dPHP%205.2.6%0AMySQL%205.0.45%0AApache%202.2.9%0A\u201d message=\u201d\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<h3 id=\"solution-7\"><span style=\"color: #339966;\"><label class=\"label label-info\">SOLUTION :7<\/label><\/span><\/h3>\n<ul>\n<li>To run php_intl you also have to copy the <strong>icu*.dll files<\/strong> from the php folder to the <strong>\\wamp\\bin\\apache\\apachex.y.z\\bin folder<\/strong><\/li>\n<li>With WampServer 2.5, this is done automatically by symbolic links.<\/li>\n<li>You can reload the PHP version by<strong> Wampmanager-menu> PHP-> 5.5.12<\/strong> although this version is validated. Symbolic links will be created again.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>PROBLEM\u00a0 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 [pastacode lang=\u201dphp\u201d manual=\u201dPHP%20Warning%3A%20PHP%20Startup%3A%20Unable%20to%20load%20dynamic%20library%20\u2019C%3A%5C%5CProgram%20Files%5C%5CPHP%5C%5Cext%5C%5Cphp_printer.dll\u2019%20-%20The%20specified%20module%20could%20not%20be%20found.%5Cr%5Cn%20in%20Unknown%20on%20line%200\u2033 message=\u201dPhp Code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/] [ad type=\u201dbanner\u201d] we have searched long and hard for a solution [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[4803,4805,4807,4806,4804,4802,4797,4800,4799,4798,4796,4801],"class_list":["post-2200","post","type-post","status-publish","format-standard","hentry","category-php","tag-download-php_mysql-dll-for-php-7","tag-pecl-printer","tag-php-print-directly-to-printer","tag-php-printer-function","tag-php-startup-unable-to-load-dynamic-library-is-not-a-valid-win32-application","tag-php-startup-unable-to-load-dynamic-library-php_wincache-dll","tag-php-startup-unable-to-load-dynamic-library-the-specified-module-could-not-be-found","tag-php_gd2-dll-download","tag-php_mysql-dll-download","tag-php_mysql-dll-missing-php-7","tag-php-installation-of-extensions-on-windows","tag-warning-cannot-open-u00amppphpextrasbrowscap-ini-for-reading-in-unknown-on-line-0"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/2200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}