Luis Is there a php_printer.dll in the extensions subdirectory to your PHP installation? Some zipfile distributions of PHP omitted this library... If no then try downloading the latest zip and installing the missing .dll and re-enabling the extension in your php.ini file or use dl() to load it. Cheers Rich -----Original Message----- From: Luis Moreira [mailto:[EMAIL PROTECTED]] Sent: 30 August 2002 16:41 To: Rich Gray Subject: Re: [PHP-WIN] Trouble with "printer_list"
Hi Rich Using just this <?php var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED) ); ?> I get "Fatal error: Call to undefined function: printer_list() in c:\myweb\printers.php on line 3" Taking out the comment in "extension=php_printer.dll" I get "Unable to load dynamic library '.php_printer.dll' - The specified module could not be found As to the OS, I am running Windows 2000 Thanks ----- Original Message ----- From: "Rich Gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 30, 2002 3:48 PM Subject: RE: [PHP-WIN] Trouble with "printer_list" > hi Luis > > Can you post the code you used.... e.g. printer_list(PRINTER_ENUM_LOCAL); > What was the different error message you received when you uncommented the > extension=... > What OS are you running? XP? FYI There is an open bug for php v4.2.1/XP for > this function #18408 > > Rich > -----Original Message----- > From: Luis Moreira [mailto:[EMAIL PROTECTED]] > Sent: 30 August 2002 14:49 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Trouble with "printer_list" > > > Hi > > I just entered this list, and would like to ask this : > > When trying to use the array PRINTER_LIST, I keep getting "undefined > function". > > Does "c:\winnt\php.ini" need to be changed ? > Un-commenting he line with "extension=php_printer.dll" gives a different > error... > > Thanks > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php