Connecting Tech Pros Worldwide Forums | Help | Site Map

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

mcmahongg@eircom.net
Guest
 
Posts: n/a
#1: Jul 17 '05
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
Guest
 
Posts: n/a
#2: Jul 17 '05

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


With total disregard for any kind of safety measures
mcmahongg@eircom.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?

http://uk2.php.net/printer

--
There is no signature.....
Closed Thread