PHP转换国际编码
程序员文章站
2022-06-06 18:02:25
...
[php]
if(isset($_GET['order_id']) && $_GET['order_id']!==''){
$oid=$_GET['order_id'];
$result=$db->Execute("select `d_no` from `delivery` where `oid`=".$oid);
$delivery_no='';
if($result->RecordCount()>0){
while(!$result->EOF){
$delivery_no=$result->fields['d_no'];
$result->MoveNext();
} www.2cto.com
if($delivery_no!==''){
$html=file_get_contents('http://tracking.post.japanpost.jp/service/singleSearch.do?searchKind=S004&locale=ja&reqCodeNo1='.$delivery_no);
if($html){
preg_match_all('/][^>]*>(.*?) /si',$html,$tables);
if(isset($_GET['order_id']) && $_GET['order_id']!==''){
$oid=$_GET['order_id'];
$result=$db->Execute("select `d_no` from `delivery` where `oid`=".$oid);
$delivery_no='';
if($result->RecordCount()>0){
while(!$result->EOF){
$delivery_no=$result->fields['d_no'];
$result->MoveNext();
} www.2cto.com
if($delivery_no!==''){
$html=file_get_contents('http://tracking.post.japanpost.jp/service/singleSearch.do?searchKind=S004&locale=ja&reqCodeNo1='.$delivery_no);
if($html){
preg_match_all('/
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论