HELP : How to print to Seiko Label Printer from PHP ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mcmahongg@eircom.net

    HELP : How to print to Seiko Label Printer from PHP ?

    Hi

    I want to print to a Seiko SLP 220 printer from PHP (printer is
    connected to COM1; and works fine via the Seiko label print
    application program).

    I've tried code like :

    $str = "Sample Test Label" . $cr . $lf . $esc . "Z";
    $fp = fopen("COM1:", "w+");
    fputs($fp, $str);
    fclose ($fp);

    (with $cr, $lf, $esc defined earlier in the program) but without
    success - the printer will form feed, but nothing prints.

    Any ideas on how to print directly to the printer successfully ?

    Is it possible to print to the printer via the OS - Windows XP ?

    thanks for any advice

    Gerry
    Dublin, Ireland
  • Phil Roberts

    #2
    Re: HELP : How to print to Seiko Label Printer from PHP ?

    With total disregard for any kind of safety measures
    mcmahongg@eirco m.net leapt forth and uttered:
    [color=blue]
    > Hi
    >
    > I want to print to a Seiko SLP 220 printer from PHP (printer is
    > connected to COM1; and works fine via the Seiko label print
    > application program).
    >
    > I've tried code like :
    >
    > $str = "Sample Test Label" . $cr . $lf . $esc . "Z";
    > $fp = fopen("COM1:", "w+");
    > fputs($fp, $str);
    > fclose ($fp);
    >
    > (with $cr, $lf, $esc defined earlier in the program) but without
    > success - the printer will form feed, but nothing prints.
    >
    > Any ideas on how to print directly to the printer successfully ?
    >
    > Is it possible to print to the printer via the OS - Windows XP ?
    >
    > thanks for any advice
    >
    > Gerry
    > Dublin, Ireland
    >[/color]

    Have you checked out the printer extension that comes with the
    Windows version of PHP?



    --
    There is no signature.....

    Comment

    Working...