| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/temp/ |
Upload File : |
<?php
function whatsapp_send($contentSid, $phone, $vars = null)
{
$variables = $vars ? array_combine(range(1, count($vars)), $vars) : null;
$opts = array(
'http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(
array(
'from' => 'MGe969ff43ea654548ccaf8273c835aaf1',
'contentSid' => $contentSid,
'phone' => $phone,
'vars' => $variables
)
)
)
);
$context = stream_context_create($opts);
try {
// Suppress warnings with @ and catch any exceptions
@$result = file_get_contents('https://www.akinik.co.in/whatsapp/api/send', false, $context);
} catch (\Throwable $e) {
// Do nothing, just prevent any error from stopping the code
}
}