Server IP : 82.112.239.40 / Your IP : 3.16.57.110 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/cabz4you.com/public_html/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include 'lib/config.php'; $sql1 = "SELECT * FROM whatsapp LIMIT 1"; $result = $conn->query($sql1); $whatsapp = $result->fetch_assoc(); $instance_id=$whatsapp['instance_id']; $access_token=$whatsapp['token']; $whatsapp_image='https://cabz4you.com/images/logo.png'; $contact='6396373753'; $message="testing"; $url=$GLOBALS['whatsapp_url']."api/send?number=91".$contact."&message=".urlencode($message)."&instance_id=".$instance_id."&access_token=".$access_token.""; $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $res=curl_exec($ch); curl_close($ch); print_r($res); ?>