<?php header('Content-Type: text/html; charset=UTF-8'); $client = new SoapClient('http://webservice.webxml.com.cn/webservices/DomesticAirline.asmx?wsdl'); $fromcity=!empty($_POST['fromcity']) ? trim($_POST['fromcity']) : '长沙'; $tocity=!empty($_POST['tocity']) ? trim($_POST['tocity']) : '广州'; $date=!empty($_POST['date']) ? trim($_POST['date']) : date('Y-m-d',time()); $parm=array( 'startCity'=>$fromcity, 'lastCity'=>$tocity, 'theDate'=>$date, 'userID'=>'' ); $city=$client->getDomesticCity(); $city=get_object_vars($city); $city=$city['getDomesticCityResult']->any; //print_r($city); //var_dump($city); $city_xml = simplexml_load_string($city); $result=$client->getDomesticAirlinesTime($parm); $result=get_object_vars($result); $result=$result['getDomesticAirlinesTimeResult']->any; //print_r($result['getDomesticAirlinesTimeResult']->any); $obj_xml = simplexml_load_string($result); //print_r($obj_xml->children()->children()); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>WecXml.com.cn 火车时刻表 Web Service 实例</title> <style type="text/css"> <!-- @import url("css/c.css"); --> </style> </head> <body> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td>  </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"> <strong>WebXml.com.cn</strong><strong> 航班时刻表 Web Service 实例</strong></td> </tr> <tr> <td>  </td> </tr> <tr> <td> </td> </tr> <tr> <td>  </td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="2" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#E5005A"> <tr> <th style="background-color: #FFD7E7;"> 航空公司</th> <th style="width: 10%; background-color: #FFD7E7;"> 航班编号</th> <th style="width: 18%; background-color: #FFD7E7;"> 出发机场</th> <th style="width: 10%; background-color: #FFD7E7;"> 出发时间</th> <th style="width: 18%; background-color: #FFD7E7;"> 到达机场</th> <th style="width: 10%; background-color: #FFD7E7;"> 到达时间</th> <th style="width: 10%; background-color: #FFD7E7;"> 机型</th> <th style="width: 10%; background-color: #FFD7E7;"> 中途是否停</th> </tr> <?php foreach($obj_xml->children()->children() as $child) { ?> <tr> <td class="tdbg"> <?php echo $child->Company; ?> </td> <td class="tdbg" > <?php echo $child->AirlineCode; ?> </td> <td class="tdbg" > <?php echo $child->StartDrome; ?> </td> <td class="tdbg"> <?php echo $child->StartTime; ?> </td> <td class="tdbg"> <?php echo $child->ArriveDrome; ?> </td> <td class="tdbg"> <?php echo $child->ArriveTime; ?> </td> <td class="tdbg"> <?php echo $child->Mode; ?> </td> <td class="tdbg"> <?php if($child->AirlineStop==0) echo '不停';else{echo '停';} ?> </td> </tr> <?php }?> </table> </td> </tr> </table> </body> </html>

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

DVWA
Damn Vulnerable Web App (DVWA) は、非常に脆弱な PHP/MySQL Web アプリケーションです。その主な目的は、セキュリティ専門家が法的環境でスキルとツールをテストするのに役立ち、Web 開発者が Web アプリケーションを保護するプロセスをより深く理解できるようにし、教師/生徒が教室環境で Web アプリケーションを教え/学習できるようにすることです。安全。 DVWA の目標は、シンプルでわかりやすいインターフェイスを通じて、さまざまな難易度で最も一般的な Web 脆弱性のいくつかを実践することです。このソフトウェアは、

MantisBT
Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。

SecLists
SecLists は、セキュリティ テスターの究極の相棒です。これは、セキュリティ評価中に頻繁に使用されるさまざまな種類のリストを 1 か所にまとめたものです。 SecLists は、セキュリティ テスターが必要とする可能性のあるすべてのリストを便利に提供することで、セキュリティ テストをより効率的かつ生産的にするのに役立ちます。リストの種類には、ユーザー名、パスワード、URL、ファジング ペイロード、機密データ パターン、Web シェルなどが含まれます。テスターはこのリポジトリを新しいテスト マシンにプルするだけで、必要なあらゆる種類のリストにアクセスできるようになります。

PhpStorm Mac バージョン
最新(2018.2.1)のプロフェッショナル向けPHP統合開発ツール

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境

ホットトピック









