2012-09-03から1日間の記事一覧

ノートPCでXAMMPを使う時のセキュリティ

apache\conf\httpd.confを編集する。 230行あたり下記に編集 AllowOverride All # # Controls who can get stuff from this server. # #Order allow,deny #Allow from all Order deny,allow Deny from All Allow from localhost 127.0.0.1 </Directory>

URL入力するとQRコードが作れるwebアプリを作る。

▼完成URL http://jewelcafe.main.jp/0903/qrcode.html qrcode.html <html> <head> <meta charset="UTF-8"> <title>QRコード</title> <style> body { text-align: center; } </style> </head> <body> <p>QRコードにしたい文字またはURLを入力してください。</p> <form action="qrcode.php" method="get"> キーワード:</form></body></html>

QRの組み込み

Google Chart Toolsを利用する。 URLリクエストは「$_GET」を利用する : → %3a ↓こちらをhtmlに組み込む <img src="http://chart.apis.google.com/chart?chs=画像サイズ&cht=qr&chl=QRコードを生成したいページのURLエンコード済みの文字列" alt=""> ↓ex