PHP Classes

Help

Recommend this page to a friend!

      PHP Print EPL  >  All threads  >  Help  >  (Un) Subscribe thread alerts  
Subject:Help
Summary:Can't make script work.
Messages:2
Author:Jay Lee
Date:2016-06-02 22:04:42
 

  1. Help   Reply   Report abuse  
Picture of Jay Lee Jay Lee - 2016-06-02 22:04:42
Hi. I've tried this script and couldn't make it work. Can you please give me some advise? My zebra printer is zebra GK420d and it's connected by USB. I shared this printer and named GK420d and put

$hostPrinter = "\\my_computer\GK420d";

in the script. When I execute this script, page only shows

\\my_computer\GK420d

and nothing happen. Please help. Thanks.

Jay

  2. Re: Help   Reply   Report abuse  
Picture of Thiago Abrantes Thiago Abrantes - 2016-06-02 22:24:53 - In reply to message 1 from Jay Lee
Hi Jay,

I did a little mistake in my last commit... I forgot to uncomment a command in the method print2zebra().

At the file classZebra.php replace the method print2zebra() to this above.

public function print2zebra(){
$this->generatePrn();
$host = str_replace("\\","\\\\",$this->host);
#$host = $this->host;
echo $host;
shell_exec("copy ".$this->prnFile." /B ".$host."");
unlink($this->prnFile);
}

If this doesn not work.... Check if your Zebra Printer is shared and try again.

Best Regards..

Thiago Abrantes

 
For more information send a message to info at phpclasses dot org.