PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Omar Ortiz  >  cQRCode  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: cQRCode
Generate QRcode images in GIF, JPEG or PNG formats
Author: By
Last change:
Date: 4 years ago
Size: 1,081 bytes


Class file image Download
$qr1 = new cQRCode("Class cQRCode",ECL_M);
$qr2 = new cQRCode("",ECL_L);
$qr3 = new cQRCode("HTTP://WWW.PHP.NET",ECL_H);
$qr4 = new cQRCode("01234567899876543210",ECL_Q);

<h1 align='center'>Examples</h1>
<table cellpadding="20" border='1' width='100%'>
<tr><td >Encoded Text</td><td align='center'>Image</td><td >Encoded Text</td><td align='center'>Image</td></tr>
<tr><td>Class cQRCode<br>Error Correction Level M</td><td align='center'><img src='./tmp/cqrcode.png'></td>
<td><br>Error Correction Level L</td><td align='center'><img src='./tmp/phpclasses.jpg'></td></tr>
<tr><td>HTTP://WWW.PHP.NET<br>Error Correction Level H</td><td align='center'><img src='./tmp/phpnet.gif'></td>
<td>01234567899876543210<br>Error Correction Level Q</td><td align='center'><img src='./tmp/numbers.png'></td></tr>