-
大小: 326KB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2021-01-09
- 標(biāo)簽:
資源簡(jiǎn)介
php天氣預(yù)報(bào)系統(tǒng)定時(shí)生成htm系統(tǒng)需要空間支持采集功能。
只要有人訪問就會(huì)在規(guī)定時(shí)間內(nèi)容進(jìn)行更新。
可設(shè)置4種顯示方式
只要有人訪問就會(huì)在規(guī)定時(shí)間內(nèi)容進(jìn)行更新。
可設(shè)置4種顯示方式
代碼片段和文件信息
/**
?*?天氣
?*?@htdy??????2010-4-28
?*?@copyright??http://www.666n.com
?*/
//header(‘Content-Type:?text/html;?charset=utf-8‘);
@set_time_limit(0);
function?get_url_content($url)?{
$charset=“utf-8“;
if(function_exists(‘file_get_contents‘))?{
$file_contents?=?file_get_contents($url);
}?else?{
$ch?=?curl_init();
$timeout?=?5;?
curl_setopt?($ch?CURLOPT_URL?$url);
curl_setopt?($ch?CURLOPT_RETURNTRANSFER?1);?
curl_setopt?($ch?CURLOPT_CONNECTTIMEOUT?$timeout);
$file_contents?=?curl_exec($ch);
curl_close($ch);
}
$file_contents?=?get_encoding($file_contents?$charset?);
return?$file_contents;
}
function?cut($string$start$end)
{
$message?=?explode($start$string);
$message?=?explode($end$message[1]);?
$message=str_replace(“\r““
“trim($message[0]))
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????829??2010-05-18?16:30??phpweatherhtm\45007.htm
?????文件????????811??2010-05-18?16:29??phpweatherhtm\45011.htm
?????文件????????877??2010-05-18?16:30??phpweatherhtm\50442.htm
?????文件????????849??2010-05-18?16:30??phpweatherhtm\50468.htm
?????文件????????875??2010-05-18?16:30??phpweatherhtm\50527.htm
?????文件????????876??2010-05-18?16:30??phpweatherhtm\50745.htm
?????文件????????838??2010-05-18?16:30??phpweatherhtm\50774.htm
?????文件????????839??2010-05-18?16:30??phpweatherhtm\50775.htm
?????文件????????851??2010-05-18?16:30??phpweatherhtm\50838.htm
?????文件????????859??2010-05-18?16:30??phpweatherhtm\50842.htm
?????文件????????838??2010-05-18?16:30??phpweatherhtm\50853.htm
?????文件????????841??2010-05-18?16:30??phpweatherhtm\50873.htm
?????文件????????829??2010-05-18?16:30??phpweatherhtm\50884.htm
?????文件????????833??2010-05-18?16:30??phpweatherhtm\50936.htm
?????文件????????838??2010-05-18?16:30??phpweatherhtm\50949.htm
?????文件????????849??2010-05-18?16:30??phpweatherhtm\50953.htm
?????文件????????880??2010-05-18?16:30??phpweatherhtm\50973.htm
?????文件????????868??2010-05-18?16:30??phpweatherhtm\50978.htm
?????文件????????825??2010-05-18?16:30??phpweatherhtm\51076.htm
?????文件????????820??2010-05-18?16:30??phpweatherhtm\51133.htm
?????文件????????841??2010-05-18?16:30??phpweatherhtm\51238.htm
?????文件????????850??2010-05-18?16:30??phpweatherhtm\51243.htm
?????文件????????835??2010-05-18?16:30??phpweatherhtm\51356.htm
?????文件????????820??2010-05-18?16:30??phpweatherhtm\51368.htm
?????文件????????846??2010-05-18?16:30??phpweatherhtm\51431.htm
?????文件????????832??2010-05-18?16:30??phpweatherhtm\51463.htm
?????文件????????823??2010-05-18?16:30??phpweatherhtm\51573.htm
?????文件????????824??2010-05-18?16:30??phpweatherhtm\51628.htm
?????文件????????828??2010-05-18?16:30??phpweatherhtm\51656.htm
?????文件????????844??2010-05-18?16:30??phpweatherhtm\51704.htm
............此處省略361個(gè)文件信息
評(píng)論
共有 條評(píng)論