![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| hie,i am attempting to use printer_open() but i am receiving the following error when i test through dl(). dl() [function.dl]: Not supported in multithreaded Web servers - use extension=printer in your php.ini in C:\AppServ\www\myFolder\dl.php on line 3. This is my code: <?php // Example loading an extension based on OS if (!extension_loaded(*'printer')) { if (strtoupper(substr(*PHP_OS, 0, 3) == 'WIN')) { dl('printer'); } else { dl(' printer.so');} } //Or, the PHP_SHLIB_SUFFIX constant is available as of PHP 4.3.0 if (!extension_loaded(*'printer')) { $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : ''; dl($prefix . 'printer.' . PHP_SHLIB_SUFFIX); } ?> why i cant load it? i am using AppServ 2.5.9. i did the following configuration. extension_dir = "C:\AppServ\php5\ex*t" //uncommenting the wants one ;extension=php_mssq*l.dll extension=php_mysql*.dll ;extension=php_mysq*li.dll extension=php_print*er.dll i have copied php_printer.dll into ext directory and libmysql.dll in c:/windows/system32. |
| |
| The Following User Says Thank You to MrPickle For This Useful Post: | ||
TeraTask (03-29-2008) | ||
| |||
| Wow, you can print with php? Is this just forcing a print to a networked print-server? __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| ||||
| Yes, ccoonen. You couldn't do that on your average server. The dl() function is used to load a "driver" that's not already present on the server. If the driver were properly installed, then the dl code would not be needed. But, that's all I know about the question, so I kept quiet -- I don't understand the error about multithreaded or whether the configuration file is correct. |
| |||
| ermm...it seems to work now.i used AppServ 2.5.9-Open project at first but the php_printer.dll was not able to be loaded to the server. then i found out that this software cant support printer function due to bugs. so, i installed these; apache_1.3.31-win32-x86-no_src php-5.0.4-Win32 mysql-essential-5[1].0.22-win32 -> i added this extension to php.ini extension = php_printer.dll -> uncomment the line below extension = php_printer.dll of course, you will have to configure httpd.conf file too. and now it is Ok. Last edited by reetha26 : 04-01-2008 at 06:01 PM. |
| ||||
| Glad to hear you got your problem sorted mate ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |