Skip to content

Commit 58d03cd

Browse files
committed
- drivers folder
1 parent 0ef2d38 commit 58d03cd

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
# digicode-web-print-sdk
2-
Web print SDK from DigiCode Kft. The code makes easier the web print from server side to a local printer. It works mainly for label printers from Zebra, Honeywell, Intermec, Datamax, Godex but it can be used with classic printers, like HP, Konica, etc..
2+
Web print SDK from DigiCode Kft. The code makes easier the web print from server side to a local printer. It works mainly for label printers from [Zebra](https://www.digicode.hu/zebra-m1/cimke-vonalkod-nyomtato-c1), [Honeywell](https://www.digicode.hu/honeywell-m4/cimke-vonalkod-nyomtato-c1), [Intermec](https://www.digicode.hu/intermec-m3/cimke-vonalkod-nyomtato-c1), [TSC](https://www.digicode.hu/tsc-m20/cimke-vonalkod-nyomtato-c1) but it can be used with classic printers, like HP, Konica, etc..
3+
4+
## Usage
5+
6+
First of all you must check the available methods for printing, mostly the set_ functions. The driver files not required for the direct socket connection, but you must send the manufacturer created script language to the printer. For example: with Zebra printer you must user ZPL program language.
7+
8+
> If your website out of localhost or the printer is not published to the web, you must set firewall **port forwarding** in router.
9+
10+
```php
11+
error_reporting(E_ALL);
12+
13+
include_once("print_send.php");
14+
include_once("print_send_lpr.php");
15+
16+
$text = "Hello world!"; // zpl/epl/ipl formatted label view
17+
18+
$lpr = new Print_send_lpr();
19+
$lpr->set_port("6001");
20+
$lpr->set_host("192.168.1.1");
21+
$lpr->set_data($text);
22+
$lpr->print_job("Queue 1");
23+
$lpr->get_debug();
24+
```
25+
> EPL the oldest label print language, its a acronym for Eltron Program Language, the company bought by Zebra. The ZPL acronym for Zebra Program Language, the current version is [ZPL v.2.0](https://files.digicode.hu/zebra-zpl-zbi2-programming-manual-en.pdf). [IPL](https://files.digicode.hu/intermec-ipl-programming-manual-en.pdf) mean Intermec Program Language.
26+
27+
## Label printers
28+
29+
If you need any device for testing the code feel free to [contact us](https://www.digicode.hu/kapcsolat). You can choose any [barcode label printer](https://www.digicode.hu/cimke-vonalkod-nyomtato-c1) on our website.

drivers/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>403 Forbidden</title>
5+
</head>
6+
<body>
7+
8+
<p>Directory access is forbidden.</p>
9+
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)