Hi long time ago , I used one script to resolve the caller number trough tel.search.ch <http://tel.search.ch/>
After update to ssl this script won’t work and after some time the tel.search.ch <http://tel.search.ch/> use api to check the caller id. And now the php changed from 5.6 to new one 7.3 Can anyone help me to fix this script again. I use one code in Astlinux ( I have a old one AstLinux Release: astlinux-1.2.6.1 i586 - Asterisk 1.8.32.3 Runnix Release: runnix-0.4-7671 GUI Version: 1.8.40) Last working php code and snoopy on my website to check the caller was : <?php $number = $_GET["tel"]; $url = "https://tel.search.ch/?was=".$number; include "Snoopy.class.php"; $snoopy = new Snoopy; $snoopy->fetch("$url"); $GrabStart = '<title>'; $GrabEnd = '</title>'; $GrabData = preg_match("/$grabStart(.*?)$grabEnd/i", $snoopy->results, $output1[1]); echo $name[0]; ?> And now I get the API Key and must rewrite those script to be compatible with php 7 and ssl on my website I use https The instruction is to use api key with this link to get the number https://tel.search.ch/api/?was=john+meier&key=c1e6a4c666c0a2ce9e38a69be7c6a I tried to change only this url $url = "https://tel.search.ch/api/?was=".$number&key=c1e6a4c666c0a2ce9e38a69be7c6a; But that dosn’t work. Regards Nedi
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.