How do I subscribe to receive blog comments to my e-mail?
Call to undefined function printer_open()
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > PHP web-programming > Call to undefined function printer_open() 9 February 2010 10:07:23

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Topic is moderated by the author — saritha.

Call to undefined function printer_open()

saritha 28 March 2008 23:27:55
 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\fyp\­ext_load.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­
Add comment
Guest 24 December 2009 05:02:18 permanent link ]
 Hi,

I got the same problem like yours, but am in Joomla.

If u hv uncommented the "extension=php_prin­ter.dll" line in php.ini, then I think there should be no problem as printer function is handled from here.

Last guess is make sure there's any printer attached to ur computer. If u sure that the printer is working good, u can call printer_open() function to open the specific printer. So that PHP "understand" the command well.

Thanks

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > PHP web-programming > Call to undefined function printer_open() 9 February 2010 10:07:23

see also:
Using APR with Borland C++
[ROOT] Fixing automatic streamers
[ROOT] static const char
pass tests:
see also:
Just one tool to meet all your need of…
Tips for Choosing the Right Video and…
How to Convert All Videos to…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .