By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,543 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,543 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
With total disregard for any kind of safety measures
mc*******@eircom.net leapt forth and uttered:
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


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

http://uk2.php.net/printer

--
There is no signature.....
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.