| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/sms4real.com/wwwroot/test/http/ |
Upload File : |
<?php
// Specify the URL and data
$url = 'https://247sms.com/api/gen/pushsms.php';
$data = [
'username' => 'nosa',
'pass' => 'nosaoswetin' ,
'sender' => 'SWIFTALLI' ,
'message' => 'Testing api',
'phonenumber' => '2348022225545,2347062012965',
'skey' => 'tshjw62asdkla7h'
];
// Initialize cURL session
$ch = curl_init();
// Set cURL options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute cURL session
$response = curl_exec($ch);
// Check for cURL errors
if ($response === false) {
die('Error occurred while fetching the data: '
. curl_error($ch));
}
// Close cURL session
curl_close($ch);
// Display the response
echo $response;
?>