0x1998 - MANAGER
Edit File: test_highsms.php
<?php mysql_connect('atlantique2.hodjra.net','web3u1','LSdhds92.') or die ("Connexion impossible"); mysql_select_db('web3db14'); // je cherche les sms au statut=0 >> pas de retour de la plateforme $query="select * from sms where sms.sms_statut='0' and sms.sms_campagne=522652822582"; $result = mysql_query($query) or die("requete impossible !!... $query"); while ($info=mysql_fetch_array($result)) { $sms_pushid=$info['sms_pushid']; $url="https://aphp.hcnx.eu/highpush_stat.php?accountid=Guillaume&password=SAMU92&push_id=".$sms_pushid; $data=file_get_contents($url); $search='"'; $replace=''; $data=str_replace($search,$replace,$data); $pos=explode(';', $data); mysql_query("update `sms` set `sms_statut`='".$pos[9]."' where `sms_id`=".$info['sms_id']); } ?>