source:
trunk/xgraph/jpgraph/Examples/qrexample00.php
| Last change on this file was 42, checked in by , 11 years ago | |
|---|---|
| File size: 408 bytes | |
| Rev | Line | |
|---|---|---|
| [42] | 1 | <?php |
| 2 | require_once ('jpgraph/QR/qrencoder.inc.php'); | |
| 3 | ||
| 4 | // Data to be encoded | |
| 5 | $data = '01234567'; | |
| 6 | ||
| 7 | // Create a new instance of the encoder and let the library | |
| 8 | // decide a suitable QR version and error level | |
| 9 | $e=new QREncoder(); | |
| 10 | ||
| 11 | // Use the image backend (this is also the default) | |
| 12 | $b=QRCodeBackendFactory::Create($e); | |
| 13 | ||
| 14 | // .. send the barcode back to the browser for the data | |
| 15 | $b->Stroke($data); | |
| 16 | ?> |
Note:
See TracBrowser
for help on using the repository browser.
