File manager - Edit - /home/autoph/public_html/aee/NEWSFEED_ServiceV2.php
Back
<?php date_default_timezone_set('Asia/Manila'); header('Content-Type: application/json'); $sqlUser = 'autoph_mva'; $sqlDatabase = 'autoph_mva'; $sqlPass = 'mva@2022@mva'; $toDateX = date_create() ->format("Y/m/d"); $prtTime =date('H:i:s'); $toDate = $toDateX ." ".$prtTime; $conn = mysql_connect($sqlHost, $sqlUser, $sqlPass) or die ("Couldn't connct to MySQL server on $sqlHost: ". mysql_error(). '.'); $db = mysql_select_db($sqlDatabase, $conn) or die ("Couldn't select database $sqlDatabase: ". mysql_error(). '.'); $newsFeed= $_REQUEST['newsFeed']; //$RecordStart= $_REQUEST['RecordStart']; //$recordEnd= $_REQUEST['recordEnd']; if($newsFeed==10240911070721200106222015){ $return_news = Array(); $sql = "SELECT * FROM newsfeed WHERE 1"; $sqlTable = mysql_query($sql, $conn); while($sqlRecord = mysql_fetch_assoc($sqlTable)) { $timeStamp = $sqlRecord['time_stamp']; $return_news[]= $sqlRecord; } $json = json_encode($return_news); } if($did_something === 0) { $msg = did_nothing_message; $json = json_encode(["status" => "$MyCustomerID", "statusCode" => "$customerType"]); } echo nl2br($json); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings