QR code generator

https://wiki.ostrowski.net.pl/qrcode/

<?php require_once './phpqrcode/qrlib.php'; // include the QR library header('Cache-Control: no-cache, must-revalidate'); // Disable caching header('Expires: 0'); // Set expiration to 0 header('Pragma: no-cache'); // Disable cache for older browsers ?> <!DOCTYPE html> <html> <head> <title>Simple QR Code Generator</title> </head> <body> <h2>QR Code Generator</h2> <form method="post"> Enter text or URL: <input type="text" name="text" required> <button type="submit">Generate QR Code</button> </form> <?php if (!empty($_POST['text'])) { $text = $_POST['text']; $filename = 'qrcode.png'; QRcode::png($text, $filename, QR_ECLEVEL_L, 5); echo "<h3>Your QR Code:</h3>"; echo "<img src='$filename'><br>"; echo "<a href='$filename' download>Download QR Code</a>"; } ?> </body> </html> </php>