Changeset 1684 -- 2010-02-28 15:23:38
- Author
tknzk
- Comment
- delete
Diffs
Services_GoogleChartApiQR/trunk/example.php
@@ -1,26 +0,0 @@
-<?php
-/**
- * example.php
- *
- */
-
-require_once 'Services/GoogleChartApiQR.php';
-
-$qr = new Services_GoogleChartApiQR(200,200);
-$qr->setChoe('UTF-8');
-$qr->setForceEncode(true);
-$str = "google chart api qr codes." . "\r\n"
- . "ใในใ";
-$qr->setChl($str);
-
-try {
- $view = $qr->view();
- $data = $qr->create();
-} catch (Exception $e) {
- echo $e->getMessage();
-}
-echo "<img src=\"$view\">";
-$fp = fopen('sample.jpg', "w");
-fwrite($fp, $data);
-
-