预览模式: 普通 | 列表

<configuration>
<location path="." inheritInChildApplications="false">
......
</location>
</configuration>

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 5191

怎么检查mx记录是否生效

开始--运行--cmd
nslookup -qe=mx 163.com

Tags: mx记录

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2823

Php显示详细错误提示信息~

在php.ini中修改如下参数:
error_reporting = E_ERROR
display_errors = On

Tags: php

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3202

php获取http远程文件头信息

方法一:

get_headers(url);//内置函数

方法二:

function getHttpHead($url){
$url = parse_url($url);
if($fp = @fsockopen($url['host'],empty($url['port'])?80:$url['port'],$error)){
fputs($fp,"GET ".(empty($url['path'])?'/':$url['path'])." HTTP/1.1\r\n");
fputs($fp,"Host:$url[host]\r\n\r\n");
$ret = '';
while(!feof($fp)){
$tmp = fgets($fp);
if(trim($tmp) == ''){
break;
}
$ret .= $tmp;
}
return $ret;
}else{
return null;
}
}

示例:echo getHttpHead('http://www.jlist.cn');

查看更多...

Tags: php

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 5471

php计算脚本执行时间

<?php
class Timer {                               //声明一个计算脚本运行时间的类
    private $startTime;                    //保存脚本开始执行时的时间(以微秒的形式保存)
    private $stopTime;                     //保存脚本结束执行时的时间(以微秒的形式保存)
    function __construct(){                 //构造方法,在创建对象时初始化成员属性
        $this->startTime=0;                 //初始化成员属性startTime的值为0
        $this->stopTime=0;                  //初始化成员属性stopTime的值为0
    }
    function start(){                       //在脚本开始处调用获取脚本开始时间的微秒值
        $this->startTime = microtime(true);     //将获取的时间赋给成员属性$startTime
    }
 function stop(){                        //在脚本结束处调用获取脚本结束时间的微秒值
        $this->stopTime= microtime(true);   //将获取的时间赋给成员属性$stopTime
    }
    function spent(){                       //返回同一脚本中两次获取时间的差值
        return round(($this->stopTime- $this->startTime) , 4);//计算后以4舍5入保留4位返回
    }
}
$timer = new Timer();                       //创建Timer类的对象
$timer->start();                            //在脚本文件开始执行时调用这个方法
usleep(1000);                           //脚本的主体内容,这里以休眠一毫秒为例
$timer->stop();                             //在脚本文件结尾处调用这个方法
echo "执行该脚本用时<b>".$timer->spent()."</b>秒"; //输出页面执行时运行的时间
?>

Tags: php

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2942

javascript窗口自动最大化代码

<script language="javascript">
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
</script>

Tags: javascript

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2486

2009全世界网民人数按国家统计数据

国家 网民数量 时间
China 384,000,000 2009
United States 230,630,000 2009
Japan 95,979,000 2009
Brazil 72,027,700 2009
Germany 61,973,100 2009
India 51,750,000 2009
United Kingdom 46,683,900 2009
Russia 45,250,000 2009
France 42,315,400 2009
Korea, South 36,837,000 2009
Turkey 25,405,400 2009
Spain 25,240,000 2009
Canada 25,086,000 2009
Italy 24,991,500 2009
Nigeria 23,982,200 2009
Mexico 23,567,400 2009
Iran 23,000,000 2009
Vietnam 20,834,000 2009
Poland 18,679,100 2009
Pakistan 18,500,000 2009
Indonesia 18,000,000 2009
Colombia 17,329,700 2009
Thailand 16,100,000 2009
Australia 15,170,000 2009
Taiwan 15,143,000 2009
Malaysia 15,074,000 2009
Netherlands 14,304,600 2009
Egypt 13,573,000 2009
Argentina 11,212,200 2009
Morocco 10,442,500 2009
Sweden 8,085,500 2009
Saudi Arabia 7,761,800 2009
Belgium 7,292,300 2009
Venezuela 7,167,400 2009
Peru 7,128,300 2009
Romania 6,194,800 2009
Czech Republic 6,027,700 2009
Austria 5,936,700 2009
Hungary 5,873,100 2009
Switzerland 5,806,800 2009
Philippines 5,618,000 2009
Chile 5,456,200 2009
Ukraine 4,875,200 2009
Greece 4,844,600 2009
Algeria 4,700,000 2009
Hong Kong 4,678,100 2009
Denmark 4,578,600 2009
Portugal 4,475,700 2009
Finland 4,382,700 2009
Sudan 4,200,000 2009
South Africa 4,187,000 2009
Norway 3,934,800 2009
Ecuador 3,882,000 2009
Slovakia 3,566,500 2009
Syria 3,565,000 2009
Israel 3,500,000 2009
Singapore 3,370,000 2009
Kenya 3,359,600 2009
Serbia 3,300,000 2009
Belarus 3,106,900 2009
New Zealand 3,047,000 2009
United Arab Emirates 2,922,000 2009
Tunisia 2,800,000 2009
Ireland 2,774,900 2009
Bulgaria 2,647,100 2009
Uganda 2,500,000 2009
Uzbekistan 2,469,000 2009
Azerbaijan 2,444,600 2009
Croatia 2,237,800 2009
Dominican Republic 2,147,400 2009
Guatemala 1,960,000 2009
Lithuania 1,826,500 2009
Kazakhstan 1,707,000 2009
Jordan 1,595,200 2009
Jamaica 1,540,000 2009
Costa Rica 1,460,000 2009
Cuba 1,450,000 2009
Zimbabwe 1,421,000 2009
Latvia 1,369,600 2009
Uruguay 1,340,000 2009
Bosnia and Herzegovina 1,307,600 2009
Sri Lanka 1,163,500 2009
Slovenia 1,125,700 2009
Bolivia 1,050,000 2009
Georgia 1,024,000 2009
Senegal 1,020,000 2009
Haiti 1,000,000 2009
Puerto Rico 1,000,000 2009
Albania 1,000,000 2009
Kuwait 1,000,000 2009
Ghana 997,000 2009
Honduras 958,000 2009
Lebanon 945,000 2009
Panama 934,500 2009
Paraguay 894,200 2009
Estonia 888,100 2009
Kyrgyzstan 850,000 2009
Moldova 850,000 2009
Macedonia 847,900 2009
Cameroon 725,000 2009
Zambia 700,000 2009
Côte d'Ivoire 660,000 2009
El Salvador 650,000 2009
Tajikistan 600,000 2009
Oman 557,000 2009
Bangladesh 556,000 2009
Angola 550,000 2009
Laos 527,400 2009
Tanzania 520,000 2009
Afghanistan 500,000 2009
Nepal 499,000 2009
Qatar 436,000 2009
Bahrain 402,900 2009
Luxembourg 387,000 2009
Yemen 370,000 2009
Ethiopia 360,000 2009
West Bank 356,000 2009
Mozambique 350,000 2009
Togo 350,000 2009
Cyprus 334,400 2009
Mongolia 330,000 2009
Libya 323,000 2009
Madagascar 316,100 2009
Malawi 316,100 2009
Iraq 300,000 2009
Rwanda 300,000 2009
Montenegro 294,000 2009
Congo, Democratic Republic of the 290,000 2009
Iceland 285,700 2009
Mauritius 282,000 2009
Réunion 280,000 2009
Macau 259,000 2009
Trinidad and Tobago 227,000 2009
Brunei 217,000 2009
Guyana 205,000 2009
Mali 200,000 2009
Eritrea 200,000 2009
Malta 198,800 2009
Armenia 191,000 2009
Barbados 188,000 2009
Nicaragua 185,000 2009
Benin 160,000 2009
Martinique 160,000 2009
Congo, Republic of the 155,000 2009
Burkina Faso 140,000 2009
Chad 130,000 2009
Papua New Guinea 120,000 2009
Botswana 120,000 2009
Gambia, The 114,200 2009
Namibia 113,500 2009
Burma 108,900 2009
Bahamas, The 106,500 2009
Fiji 103,000 2009
Guadeloupe 103,000 2009
Cape Verde 102,800 2009
Somalia 102,000 2009
Saint Lucia 100,000 2009
Guinea 90,000 2009
Gabon 90,000 2009
French Polynesia 90,000 2009
New Caledonia 85,000 2009
Guam 85,000 2009
Niger 80,000 2009
Swaziland 80,000 2009
Turkmenistan 75,000 2009
Cambodia 74,000 2009
Lesotho 73,300 2009
Maldives 71,700 2009
Saint Vincent and the Grenadines 66,000 2009
Burundi 65,000 2009
Antigua and Barbuda 65,000 2009
Mauritania 60,000 2009
Andorra 59,100 2009
French Guiana 54,000 2009
Bermuda 51,000 2009
Suriname 50,000 2009
Guernsey 46,100 2009
Bhutan 45,000 2009
Faroe Islands 37,500 2009
Guinea-Bissau 37,100 2009
Greenland 36,000 2009
Belize 34,000 2009
Seychelles 33,900 2009
British Virgin Islands 30,000 2009
Jersey 29,000 2009
Dominica 27,500 2009
Djibouti 25,900 2009
Sao Tome and Principe 24,800 2009
Aruba 24,000 2009
Grenada 24,000 2009
Liechtenstein 23,500 2009
Comoros 23,000 2009
Cayman Islands 23,000 2009
Monaco 22,000 2009
Liberia 20,000 2009
Central African Republic 19,000 2009
Vanuatu 17,000 2009
San Marino 17,000 2009
Micronesia, Federated States of 16,000 2009
Saint Kitts and Nevis 16,000 2009
Sierra Leone 13,900 2009
Equatorial Guinea 12,000 2009
Solomon Islands 10,000 2009
Samoa 9,000 2009
Tonga 8,400 2009
Gibraltar 6,500 2009
Cook Islands 5,000 2009
Anguilla 4,500 2009
Tuvalu 4,200 2009
Falkland Islands (Islas Malvinas) 2,800 2009
Marshall Islands 2,200 2009
Kiribati 2,000 2009
Timor-Leste 1,800 2009
Wallis and Futuna 1,200 2009
Montserrat 1,200 2009
Niue 1,000 2009
Saint Helena 800 2009
Tokelau 800 2009
分类:业界文摘 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3046

在国外网站上看到的一段代码~

涉及到层绝对定位,文字竖排,值得收藏!
<!--twitterBadge by neo22s-->
<style>.twitterBadge{ position:fixed;top:300px;right:0;width:30px;font-size:20px; font-family:Verdana, Geneva, sans-serif;-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg);background-color:#76AF4C;}
.twitterBadge  a{background-image:url("http://lab.neo22s.com/twitterBadge/twittbird.png");background-repeat:no-repeat;background-position:top right;text-decoration:none;background-color:#76AF4C;color:#EAF6E5;padding:0 35px 5px 10px;}</style>
<!--[if IE]><style>.twitterBadge {top:200px;writing-mode: tb-rl; filter: flipv fliph;}.twitterBadge a {background-image:url("http://lab.neo22s.com/twitterBadge/twittbird-ie.png");background-position:left;padding:7px 0 32px 0}</style><![endif]-->
<div class="twitterBadge">
 <a target="_blank" title="openclassifieds on Twitter" href="http://twitter.com/openclassifieds">Follow&nbsp;me</a>
</div>
<!--end twitterBadge-->
 

Tags: css

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2429

javascript彩色文字变换效果

<script>
var text="彩色文字循环变换效果"
var speed=80 // SPEED OF FADE
if (document.all||document.getElementById){
document.write('<span id="highlight">' + text + '</span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(text)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",speed)
}
starteffect()
</script>
脚本演示:https://blog.guanjianci.net/javascript/caisewenzi.html

Tags: javascript

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2549

 广告位

↑返回顶部↑