Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/plugins/kuaidi100/ |
<?php $getcom = trim($_GET["com"]); $getNu = trim($_GET["nu"]); //echo $typeCom.'<br/>' ; //echo $getNu ; include_once("kuaidi100_config.php"); if(isset($postcom)&&isset($getNu)){ $url = 'http://www.kuaidi100.com/applyurl?key='.$kuaidi100key.'&com='.$postcom.'&nu='.$getNu; // echo $url; //请勿删除变量$powered 的信息,否者本站将不再为你提供快递接口服务。 $powered = '查询服务由:<a href="http://www.kuaidi100.com" target="_blank" style="color:blue">快递100</a> 网站提供'; //优先使用curl模式发送数据 if (function_exists('curl_init') == 1){ $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, $url); curl_setopt ($curl, CURLOPT_HEADER,0); curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($curl, CURLOPT_USERAGENT,$_SERVER['HTTP_USER_AGENT']); curl_setopt ($curl, CURLOPT_TIMEOUT,5); $get_content = curl_exec($curl); curl_close ($curl); }else{ include("snoopy.php"); $snoopy = new snoopy(); $snoopy->fetch($url); $get_content = $snoopy->results; } //$get_content=iconv('UTF-8', 'GB2312//IGNORE', $get_content); //if(strpos($get_content,'地点和跟踪进度')== false){ // echo '查询失败,请重试'; //} echo '<iframe src="'.$get_content.'" width="534" height="340" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"><br/>' . $powered; }else{ echo '查询失败,请重试'; } exit(); ?>