{"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<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">Php Code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">PHP Warning: PHP Startup: Unable to load dynamic library &#039;C:\\\\Program Files\\\\PHP\\\\ext\\\\php_printer.dll&#039; - The specified module could not be found.\\r\\n in Unknown on line 0<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\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 &#8220;<strong>extension=php_printer.dll<\/strong>&#8221; and &#8220;<strong>extension_dir=&#8221;C:\\Program Files\\PHP\\ext<\/strong>&#8220;<\/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&#8217;t 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<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">Php Code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">extension_dir=&quot;C:\\full\\path\\to\\php\\ext&quot;<\/code><\/pre> <\/div>\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<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">Php Code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">extension_dir=&quot;C:\\full\\path\\here&quot;<\/code><\/pre> <\/div>\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 &#8216;<strong>c:\/wamp\/bin\/php\/php5.3.13\/ext\/php_ldap.dll<\/strong>&#8216; &#8211; 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&#8217;t 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<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">Php Code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">extension_dir = C:\\php<br\/>             to <br\/>extension_dir = C:\\wamp\\bin\\php\\php5.4\\ext<\/code><\/pre> <\/div>\n<p style=\"top: 138px;\">[ad type=&#8221;banner&#8221;]\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=&#8221;medium&#8221; title=&#8221;Download libmysql.dll&#8221; style=&#8221;rounded&#8221; url=&#8221;https:\/\/www.dllme.com\/dll\/files\/libmysql_dll.html&#8221; target=&#8221;_blank&#8221; bg_color=&#8221;#1e73be&#8221; txt_color=&#8221;#FFFFFF&#8221; icon=&#8221;fa-arrow-down&#8221; icon_type=&#8221;fa&#8221; nofollow=&#8221;1&#8243;]\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&#8217;s for better printing solution:<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">PHP 5.2.6<br\/>MySQL 5.0.45<br\/>Apache 2.2.9<\/code><\/pre> <\/div>\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&gt; PHP-&gt; 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 [ad type=&#8221;banner&#8221;] we have searched long and hard for a solution and have found lots of posts regarding [&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}]}}