| Server IP : 172.64.80.1 / Your IP : 172.69.17.154 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/ |
Upload File : |
<?php
// QR code data
$qrText = 'https://login.remita.net/remita/onepage/invoice.spa?rrr=201026692025';
// API endpoint and parameters
$apiUrl = 'https://api.qr-code-generator.com/v1/create/';
$params = [
'url' => $qrText,
'size' => '150x150'
];
// Generate QR code using cURL
$ch = curl_init($apiUrl . '?' . http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$qrCodeImage = curl_exec($ch);
curl_close($ch);
// Output QR code image
header('Content-Type: image/png');
echo $qrCodeImage;
?>