Collect and sort the code by yourself to easily implement online queries for weather and QQ. For reference only, please click it.
- /* Generate at Sun, 04 Jan 2009 13:46:27 + 0000
- Don't Modify Me!
- Cache Name Citys
- Key: a5819c80f61198eabf3d3ffceec595de
- */
- $ Citys = array (
- 54511 => 'Beijing ',
- 58367 => 'Shanghai ',
- 54517 => 'Tianjin ',
- 57516 => 'Chongqing ',
- 45005 => 'Hong Kong ',
- 45011 => 'Macao ',
- 50953 => 'Harbin ',
- 50745 => 'qiqihar ',
- 54094 => 'mudanjiang ',
- 50842 => 'daqing ',
- 50774 => 'yichun ',
- 50884 => 'shuangyashan ',
- 50775 => 'hangang ',
- 50978 => 'jixi ',
- 50873 => 'jiamusi ',
- 50971 => 'qitaihe ',
- 50468 => 'heihe ',
- 50853 => 'suihu ',
- 50442 => 'daxinganling ',
- 54161 => 'changchun ',
- 54172 => 'jilin ',
- 54371 => 'baishan ',
- 50936 => 'White City ',
- 54157 => 'siping ',
- 50946 => 'songyuan ',
- 54260 => 'liaoyuan ',
- 50945 => 'daam ',
- 54363 => 'tonghua ',
- 54342 => 'Shenyang ',
- 54662 => 'Dalian ',
- 54453 => 'huludao ',
- 54660 => 'lushun ',
- 54346 => 'benxi ',
- 54353 => 'fushun ',
- 54249 => 'tieling ',
- 54347 => 'liaoyang ',
- 54471 => 'yingkou ',
- 54237 => 'fuxin ',
- 54324 => 'chaoyang ',
- 54337 => 'jinzhou ',
- 54497 => 'danton ',
- 54339 => 'anshan ',
- 53463 => 'huheha ',
- 54102 => 'xilinhot ',
- 53446 => 'Baotou ',
- 54218 => 'Chifeng ',
- 50527 => 'hailar ',
- 53512 => 'wuhai ',
- 53543 => 'erdos ',
- 54135 => 'tongliao ',
- 53698 => 'shijiazhuang ',
- 54534 => 'tangshan ',
- 54401 => 'zhangjiakou ',
- 54515 => 'langfang ',
- 53798 => 'xingtai ',
- 53892 => 'handan ',
- 54616 => 'cangzhou ',
- 54702 => 'hengshui ',
- 54423 => 'chengde ',
- 54602 => 'baoding ',
- 54449 => 'qinhuangdao ',
- 57083 => 'zhengzhou ',
- 57091 => 'kaifeng ',
- 57073 => 'luoyang ',
- 57171 => 'pingdingshan ',
- 53982 => 'jiaozuo ',
- 53990 => 'hebi ',
- 53986 => 'xinxiang ',
- 53898 => 'anyang ',
- 54900 => 'puyang ',
- 57089 => 'Xuchang ',
- 57186 => 'luohe ',
- 57051 => 'Sanmenxia ',
- 57178 => 'nanyang ',
- 58005 => 'shangqiu ',
- 57297 => 'xinyang ',
- 57195 => 'zhoukou ',
- 57290 => 'zhumadian ',
- 54823 => 'jinan ',
- 54857 => 'Qingdao ',
- 54830 => 'zibo ',
- 54774 => 'weihai ',
- 54918 => 'qufu ',
- 54938 => 'linyi ',
- 54765 => 'yantai ',
- 58024 => 'zaozhuang ',
- 54806 => 'liaocheng ',
- 54915 => 'jining ',
- 54906 => 'heze ',
- 54827 => 'ta ',
- 54945 => 'rizhao ',
- 54736 => 'dongying ',
- 54714 => 'dezhou ',
- 54734 => 'binzhou ',
- 54828 => 'laiwu ',
- 54843 => 'weifang ',
- 53772 => 'Taiyuan ',
- 53782 => 'yangquan ',
- 53976 => 'jincheng ',
- 53778 => 'jinzhong ',
- 53868 => 'linfen ',
- 53959 => 'yuncheng ',
- 53882 => 'changzhi ',
- 53578 => 'shuozhou ',
- 53674 => 'xinzhou ',
- 53487 => 'Datong ',
- 58238 => 'Nanjing ',
- 58357 => 'Suzhou ',
- 58356 => 'kunshan ',
- 58259 => 'nantong ',
- 58377 => 'taicang ',
- 58349 => 'wuxian ',
- 58027 => 'xuzhou ',
- 58346 => 'yixing ',
- 58248 => 'zhenjiang ',
- 58145 => 'huaian ',
- 58352 => 'changshu ',
- 58151 => 'yancheng ',
- 58246 => 'taizhou ',
- 58354 => 'Wuxi ',
- 58044 => 'lianyungang ',
- 58245 => 'yangzhou ',
- 58343 => 'changzhou ',
- 58131 => 'suqian ',
- 58321 => 'Hefei ',
- 58326 => 'chaohu ',
- 58221 => 'bengbu ',
- 58424 => 'anqing ',
- 58311 => 'Liu 'an ',
- 58236 => 'chuzhou ',
- 58336 => 'maanshan ',
- 58203 => 'fuyang ',
- 58433 => 'xuancheng ',
- 58429 => 'tongling ',
- 58116 => 'huaibei ',
- 58334 => 'wuhu ',
- 58122 => 'Suzhou ',
- 58224 => 'huainan ',
- 58427 => 'chizhou ',
- 57036 => 'xiance ',
- 53955 => 'hancheng ',
- 57245 => 'ankang ',
- 57127 => 'hanzhong ',
- 57016 => 'baoji ',
- 57048 => 'xianyang ',
- 53646 => 'Yulin ',
- 57045 => 'weinan ',
- 57143 => 'shanglo ',
- 53947 => 'tongchuan ',
- 53845 => 'yan'an ',
- 53614 => 'yinchuan ',
- 53817 => 'qingyuan ',
- 53704 => 'zhongwei ',
- 53518 => 'shizushan ',
- 53612 => 'wuzhong ',
- 52889 => 'lanzhou ',
- 52896 => 'baibai ',
- 53829 => 'qingyang ',
- 52533 => 'jiuquan ',
- 57006 => 'tianshui ',
- 52679 => 'wuwei ',
- 52652 => 'hangzhou ',
- 50741 => 'gannan ',
- 52984 => 'linxia ',
- 53915 => 'pingliang ',
- 52995 => 'dingxi ',
- 52675 => 'jinchang ',
- 52866 => 'sinning ',
- 52754 => 'haibei ',
- 52737 => 'haisi ',
- 56065 => 'huangnan ',
- 56043 => 'guolo ',
- 56029 => 'yushu ',
- 52875 => 'haidong ',
- 52856 => 'Hainan ',
- 57494 => 'Wuhan ',
- 57461 => 'yichang ',
- 57498 => 'huanggang ',
- 57447 => 'enshi ',
- 57476 => 'jingzhou ',
- 57362 => 'shennongjia ',
- 57256 => 'shiyan ',
- 57590 => 'xianning ',
- 57278 => 'xiangfan ',
- 57482 => 'xiaogan ',
- 57381 => 'suizhou ',
- 58407 => 'huangshi ',
- 57377 => 'jingmen ',
- 57496 => 'ezhou ',
- 57679 => 'Changsha ',
- 57766 => 'shaoyang ',
- 57662 => 'changde ',
- 57972 => 'chenzhou ',
- 57649 => 'gistar ',
- 57780 => 'zhuzhou ',
- 57763 => 'loudi ',
- 57773 => 'xiangtan ',
- 57674 => 'yiyang ',
- 57866 => 'yongzhou ',
- 57584 => 'yueyang ',
- 57872 => 'hengyang ',
- 57749 => 'huaihua ',
- 57771 => 'shaoshan ',
- 57558 => 'zhangjiajie ',
- 58457 => 'hangzhou ',
- 58450 => 'huzhou ',
- 58549 => 'jinhua ',
- 58563 => 'ningbo ',
- 58646 => 'lishui ',
- 58453 => 'shaoxing ',
- 58633 => 'quzhou ',
- 58452 => 'jiaxing ',
- 58660 => 'taizhou ',
- 58477 => 'zhoushan ',
- 58659 => 'Wenzhou ',
- 58606 => 'nanchang ',
- 57786 => 'pingxiang ',
- 58502 => 'jiujiang ',
- 58637 => 'shangrao ',
- 58617 => 'Fuzhou ',
- 57799 => 'gian ',
- 58627 => 'yingtan ',
- 57793 => 'yichun ',
- 57796 => 'xinyu ',
- 58527 => 'jingdezhen ',
- 57993 => 'ganzhou ',
- 58847 => 'Fuzhou ',
- 59134 => 'xiamen ',
- 58927 => 'longyan ',
- 58834 => 'nanping ',
- 58846 => 'ningde ',
- 58946 => 'putian ',
- 59137 => 'quanzhou ',
- 58828 => 'sanming ',
- 59126 => 'zhangzhou ',
- 57816 => 'guiyang ',
- 57806 => 'ance ',
- 57609 => 'chishui ',
- 57713 => 'zunyi ',
- 57741 => 'tongren ',
- 56693 => 'liupanshui ',
- 57707 => 'Bijie ',
- 57825 => 'kyry ',
- 57827 => 'duyun ',
- 56294 => 'Chengdu ',
- 57602 => 'luzhou ',
- 57504 => 'neijiang ',
- 56571 => 'liangshan ',
- 56171 => 'Aba ',
- 57313 => 'bazhong ',
- 57206 => 'guangyuan ',
- 56386 => 'leshan ',
- 56196 => 'mianyang ',
- 56198 => 'deyang ',
- 56666 => 'panzhihua ',
- 56287 => 'ya'an ',
- 56492 => 'yibin ',
- 56396 => 'zigon ',
- 56146 => 'ganizhou ',
- 57328 => 'dadada ',
- 56298 => 'ziyang ',
- 57415 => 'guang'an ',
- 57405 => 'suining ',
- 56391 => 'meishan ',
- 57411 => 'nanchong ',
- 59287 => 'Guangzhou ',
- 59493 => 'Shenzhen ',
- 59312 => 'chaozhou ',
- 59082 => 'shaoguan ',
- 59658 => 'zhanjiang ',
- 59298 => 'huizhou ',
- 59280 => 'qingyuan ',
- 59289 => 'Dongguan ',
- 59473 => 'jiangmen ',
- 59659 => 'maoming ',
- 59278 => 'zhaoqing ',
- 59501 => 'tail ',
- 59293 => 'heyuan ',
- 59315 => 'jieyang ',
- 59117 => 'meizhou ',
- 59485 => 'zhongshan ',
- 59269 => 'diqing ',
- 59663 => 'yangjiang ',
- 59471 => 'yunfu ',
- 59488 => 'Zhuhai ',
- 59316 => 'shantou ',
- 59431 => 'nanning ',
- 57957 => 'guilin ',
- 59051 => 'yangshuo ',
- 59046 => 'Liuzhou ',
- 59265 => 'wuzhou ',
- 59453 => 'Yulin ',
- 59254 => 'guiping ',
- 59065 => 'hezhou ',
- 59632 => 'qinzhou ',
- 59249 => 'guigang ',
- 59635 => 'fangchenggang ',
- 59211 => 'baise ',
- 59644 => 'beihai ',
- 59023 => 'hechi ',
- 59242 => 'lailai ',
- 59425 => 'chongzu ',
- 56778 => 'Kunming ',
- 56748 => 'baoshan ',
- 56768 => 'chuxiong ',
- 56844 => 'dihong ',
- 56975 => 'honghe ',
- 56951 => 'lincang ',
- 56533 => 'nujiang ',
- 56783 => 'qujing ',
- 56964 => 'simao ',
- 56994 => 'wenshan ',
- 56875 => 'yuxi ',
- 56586 => 'zhaotong ',
- 56651 => 'lijiang ',
- 56751 => 'Dali ',
- 59758 => 'haikou ',
- 59948 => 'sanya ',
- 59845 => 'bozhou ',
- 59757 => 'qiongshan ',
- 59941 => 'tosh ',
- 59856 => 'wenchang ',
- 51463 => 'Urumqi ',
- 51076 => 'alty ',
- 51628 => 'aksus ',
- 51368 => 'changji ',
- 52203 => 'hami ',
- 51828 => 'hetian ',
- 51709 => 'khash ',
- 51243 => 'karamay ',
- 51356 => 'shihezi ',
- 51133 => 'city ',
- 51656 => 'kurle ',
- 51573 => 'turfan ',
- 55591 => 'Lhasa ',
- 55437 => 'Ali ',
- 56137 => 'changdu ',
- 55299 => 'naqu ',
- 55578 => 'shigate ',
- 55598 => 'shannan ',
- 56312 => 'linzhi ',
- 58968 => 'Taipei ',
- 59554 => 'kaohsiung ',
- 17060 => 'Istanbul Istanbul ',
- 40754 => 'Tehran TEHRAN ',
- 41781 => 'Karachi KARACHI ',
- 42182 => 'New delhi new Delhi ',
- 43466 => 'colombo Column ',
- 47108 => 'Seoul SEOUL ',
- 47159 => 'Busan BUSAN ',
- 47662 => 'Tokyo TOKYO ',
- 48097 => 'yangon Yangon ',
- 48454 => 'Bangkok bangok ',
- 48647 => 'kuala lumpur kuala lumpur ',
- 48820 => 'Hanoi HA noi ',
- 96745 => 'Jakarta JAKARTA ',
- 10141 => 'Hamburg HAMBURG ',
- 10381 => 'Berlin Berlin ',
- 10637 => 'frankfurt ',
- 11034 => 'Vienna VIENNA ',
- 16066 => 'Milan MILANO ',
- 16235 => 'Rome Roma ',
- 16701 => 'Athens Athens ',
- 2484 => 'Stockholm stockhol ',
- 27612 => 'Moscow MOSKVA ',
- 3334 => 'Manchester MANCHESTER ',
- 3779 => 'London LONDON ',
- 6240 => 'Amsterdam AMSTERDAM ',
- 6451 => 'Brussels brusseles ',
- 6660 => 'Zurich ZURICH ',
- 6700 => 'Geneva geneve ',
- 61291 => 'bamako ',
- 63450 => 'Addis ababa addis ababa ',
- 63740 => 'Nairobi NAIROBI ',
- 65472 => 'accra accra ',
- 67341 => 'maputo ',
- 68368 => 'Johannesburg JOHANNESBURG ',
- 68396 => 'manzini MANZINI ',
- 68816 => 'Cape TOWN ',
- 71624 => 'Toronto TORONTO ',
- 71627 => 'Montreal MONTREAL ',
- 71628 => 'Ottawa OTTAWA ',
- 71892 => 'Vancouver VANCOUVER ',
- 72202 => 'Miami MIAMI ',
- 72219 => 'Atlanta Atlantis ',
- 72243 => 'Houston HOUSTON ',
- 72295 => 'Los Angeles ',
- 72386 => 'Las VEGAS ',
- 72403 => 'Washington DC ',
- 72503 => 'New york new york ',
- 72509 => 'Boston BOSTON ',
- 72530 => 'Chicago CHICAGO ',
- 72793 => 'Seattle SEATTLE ',
- 78264 => 'Santiago santiago de cuba ',
- 80222 => 'bogota BOGOTA ',
- 84628 => 'Lima Lim ',
- 85799 => 'Port PUERTO montt ',
- 87585 => 'Buenos AIRES buckets ',
- 93110 => 'Auckland Auckland ',
- 93436 => 'Wellington WELLINGTON ',
- 94767 => 'Sydney SYDNEY ',
- 94868 => 'Melbourne Melbourne ',
- 94926 => 'Canberra canbera ',
- 59279 => 'foshan ',
- 53753 => 'luliang ',
- 51431 => 'irn ');
- ?>
- Header ('content-type: text/html; charset = utf-8 ');
- Require_once 'City. php ';
- @ Error_reporting (0 );
- If ($ _ POST ['submit '] =' OK ')
- {
- $ Client = new SoapClient ('http: // www.webxml.com.cn/WebServices/WeatherWebService.asmx? Wsdl ');
- $ Code = $ _ POST ['city'];
- // $ Code = 'Shenzhen ';
- $ Para = array ('thecityname' => $ code );
- $ Res = $ client->__ Call ('getweatherbycityname', array ('paramters '=> $ para)-> getWeatherbyCityNameResult-> string;
- Echo"
"; - Echo "city:". $ res [1];
- Echo"
Temperature: ". $ res [5]; - Echo"
Weather: ". $ res [6]; - Echo"
Wind power: ". $ res [7]; - Echo"
";
- // $ Qq =$ _ POST ['qqnum'];
- $ Qq = '000000 ';
- If (! Empty ($ qq ))
- {
- If (preg_match ('/^ \ d + $/', $ qq ))
- {
- $ Client = new SoapClient ('http: // www.webxml.com.cn/webservices/qqOnlineWebService.asmx? Wsdl ', array ('Trace' => 1 ));
- $ Para = array ('qqcode' => $ qq );
- $ Res = $ client->__ Call ('qqcheckonline', array ('paramters '=> $ para)-> qqCheckOnlineResult;
- Echo $ qq. 'current '. ($ res = 'y '? 'Line': 'offline ');
- }
- Else
- {
- Echo'Incorrect QQ number';
- }
- }
- }
- ?>
|