php_printer.dll and Win XP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob

    php_printer.dll and Win XP

    I am trying print labels from a networked printer. Can I use
    php_printer.dll with Win XP?

    Returned from the webserver:

    Unable to load dynamic library 'c:/php/php_printer.dll '- The
    specified procedure could not be found.

    Fatal error: Call to undefined function: printer_open() in
    C:\xitami\xitam i-24\app\webpages \label_printer_ test.php on line 13

    In the php.ini:

    extension_dir=" c:/php/"

    The actual calling lines from the webpage:

    <?php
    $handle = printer_open("\ \\\engineering\ \crib_label");
    printer_write($ handle, "Text to print");
    printer_close($ handle);

    ?>

    [color=blue]
    >From the php.net website: "These functions are only available under[/color]
    Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4.0.4." Do
    I take this a face value?

  • Bob

    #2
    Re: php_printer.dll and Win XP

    Incidently I am running WinXP Pro and phpinfo() gives the following
    system info: System Windows NT EDC700 5.1 build 2600

    Comment

    Working...