how create qr code?

how create qr code image in php without use google api or another website , i need class help me to create image qr code from text with Privacy
YUYUAsked:
Who is Participating?
 
Loganathan NatarajanLAMP DeveloperCommented:
Did you see this link? http://phpqrcode.sourceforge.net/
0
 
hernst42Commented:
See e.g.
http://code.google.com/p/qrforall/ (requires a linux binary)
http://sourceforge.net/projects/phpqrclass/ (complete PHP code withour binary or remote service)
0
 
Ray PaseurCommented:
JPGraph has some capabilities.  This little script shows how to call the Google interface.  You can install it on your server and test it, or run it on my server here.
http://www.laprbass.com/RAY_qr_code.php

Best regards, ~Ray
<?php // RAY_qr_code.php
error_reporting(E_ALL);

// GENERATE QR CODE IMAGES
// SEE http://code.google.com/apis/chart/infographics/docs/qr_codes.html

$q = NULL;

// IF THERE IS DATA
if (!empty($_GET["q"]))
{
    $q = $_GET["q"];
    $url
    = 'https://chart.googleapis.com/chart?'
    . 'cht=qr'
    . '&'
    . 'chs=33x33'
    . '&'
    . 'chl='
    . urlencode($q);
    ;
    header('Content-type: image/png');
    die( file_get_contents($url) );
}

$form = <<<FORM
Enter your name
<form>
<input name="q" value="$q" />
<input type="submit" />
</form>
FORM;

echo $form;

Open in new window

0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
YUYUAuthor Commented:
I've requested that this question be deleted for the following reason:

no answer
0
 
Ray PaseurCommented:
Eh?  The practical answer might be to use the Google interface (that is what I do and that is what I posted) however hernst42 posted a link to a self-contained native-PHP class for producing QR Codes in image or text (console or document) that uses no other files or modules.  This is exactly what you asked for.

I will post an objection so you can engage in some dialog or accept the correct answers.  Good luck with your project, ~Ray
0
 
Ray PaseurCommented:
Useful answers can be found at http:#36923130 and http:#36931089
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.