-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathsitemap_post.php
31 lines (30 loc) · 1.23 KB
/
sitemap_post.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
$urls = array(
'http://www.hkgbf.com/',
'http://www.hkgbf.com/index.php?c=list&cs=pros',
'http://www.hkgbf.com/index.php?c=list&cs=join_us',
'http://www.hkgbf.com/index.php?c=msg&ts=contact',
'http://www.hkgbf.com/index.php?c=list&cs=register&',
'http://www.hkgbf.com/index.php?c=list&cs=huanqiugupiao&',
'http://www.hkgbf.com/index.php?c=list&cs=huanqiujijin&',
'http://www.hkgbf.com/index.php?c=list&cs=xianggangbaoxian&',
'http://www.hkgbf.com/index.php?c=list&cs=ipo&',
'http://www.hkgbf.com/index.php?c=list&cs=fund_products&',
'http://www.hkgbf.com/index.php?c=list&cs=shijiejijijingongsijianjie&',
'http://www.hkgbf.com/index.php?c=list&cs=insurance_products&',
'http://www.hkgbf.com/index.php?c=list&cs=insurance_notice&',
'http://www.hkgbf.com/index.php?c=list&cs=insurance_case&',
);
$api = 'http://data.zz.baidu.com/urls?site=www.hkgbf.com&token=HK9reLk0R8EcLQDC';
$ch = curl_init();
$options = array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("\n", $urls),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
echo $result;
?>