Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:30 AM
mcmahongg@eircom.net
Guest
 
Posts: n/a
Default 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

  #2  
Old July 17th, 2005, 12:30 AM
Phil Roberts
Guest
 
Posts: n/a
Default 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.....
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.