QR Code

Any hacks and modifications will be in here...

Re: QR Code

Postby X-disturbed-x » Wed Mar 14, 2012 12:38 am

Ok thanx i try it ^^
X-disturbed-x
Newbie Member
 
Posts: 4
Joined: Mon Mar 12, 2012 10:53 pm

Re: QR Code

Postby k3st » Tue Mar 05, 2013 6:40 am

Hello

Actually there is something with google api more basic who do the tricks more easily.

This is a basic call for static page wich display QR code on answer.

<img src="https://chart.googleapis.com/chart?chs=100x100&cht=qr&chl=http://YOURpageURL.com/&choe=UTF-8" />


For make it dynamic, depending of page url.

<!-- Can be placed anywhere on the page - Get page url -->
<?php
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}?>

<!-- Put this line where you want your dynamic QR code -->
<img src="https://chart.googleapis.com/chart?chs=100x100&cht=qr&chl=<?php print $pageURL?>/&choe=UTF-8" />



;)
k3st
Newbie Member
 
Posts: 2
Joined: Tue Mar 05, 2013 6:09 am

Previous

Return to Hacks and Modifications

Who is online

Users browsing this forum: No registered users and 8 guests

cron