File manager - Edit - /home/autoph/public_html/connectv1/run.php
Back
<?php // include_once("app/sms/sms_start.php"); // include_once("cfg/db.php"); // $send_sms = new SMS(); // $text = "AUTOHUB GROUP OF COMPANIES, INC.'S MITSUBISHI DEALERSHIPS ARE NOW HERE! // Dear Valued Client, // Greetings! // We trust that you and your loved ones are healthy and safe during this time. // Autohub Group of Companies, Inc. (Autohub) is pleased to announce the opening of its two (2) Mitsubishi Dealerships. One is in the heart of Metro Manila located in Bonifacio Global City and the other in Valenzuela. // Get excited and enjoy Autohub Exclusives when you purchase brand new Mitsubishi vehicle(s) from any of Autohub's Mitsubishi dealerships and avail of the perks when you have your vehicle serviced with us. // You may reach and/or "; // $cleaned = str_replace("\r\n", "\n", $text); // $count = strlen($cleaned); // // echo strlen($text); // echo $count; // $status = $send_sms -> sendSMS("+639464023948", $cleaned, $variable); // SEND TEXT ITXTMO // echo "<br>" . $status; //------------------------------------------------------------------------------------------------------------ // $string = "Hi [firstname]"; // if(stripos($string, '[firstname]')){ // echo 'Found1'; // } // else { // echo 'Not found'; // } // ---------------------------------------------------------------------------------------------------------------------------------- $url = 'https://www.itexmo.com/php_api/apicode_info.php?apicode=PR-AUTOH172111_IE74I'; // $curl_handle = curl_init(); // curl_setopt($curl_handle,CURLOPT_URL, $url); // curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2); // $str = curl_exec($curl_handle); // curl_close($curl_handle); // print_r(json_decode($str,true)); $response = (file_get_contents($url)); //Converting in json string // $n = strpos($response, "["); // $response = substr_replace($response, "", 0, $n + 1); // $response = substr_replace($response, "" , -1, 1); $arr = array(); // print_r(json_decode($response, true)); $arr = json_decode($response, true); // print_r($arr); echo $arr['Result ']['MessagesLeft']; ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings