摘要:Apache服务器.htaccess伪静态设置RewriteEngine on RewriteCond $1 !^(index\\.php|system\\.php|images|skin|js|ls|swfupload|attachment|application|robots\\.txt) RewriteRule ^(.*)$ /fx/index.php/$1 [L]Nginx服务器伪静态设置location / { root /var/www/html/; index index.html index.htm index.php; if ...
阅读全文
摘要:版本:dedeCMS 5.7在【远程服务器同步向导】选择【更新选择】后,提示无法连接错误。原因就是我不是使用默认的端口,而源码却没有把端口参数传进FTP里。以下,我们一起来修改源码,把端口参数传进去。第一步,打开/admin/config.php213行$select.="<option value='".$servurl.",".$servuser.",".$servpwd."'{$checked}>".$servname."</option>";修改为
阅读全文
摘要:javascript:function toRadians(degree) {return degree * Math.PI / 180;}function distance(latitude1, longitude1, latitude2, longitude2) {// R is the radius of the earth in kilometersvar R = 6371;var deltaLatitude = toRadians(latitude2-latitude1);var deltaLongitude = toRadians(longitude2-longitude1);la
阅读全文
摘要:自定义域名:myhost.comwindows版本:win7iis版本:iis7.xvs版本:vs2010现在开始动手设置了:一、修改host文件在系统盘中的如下路径C:\WINDOWS\system32\drivers\etc去掉只读权限,使用记事本打开,在最后一行添加:127.0.0.1 myhost.com保存,关闭。二、测试自定义域名方法1、开始,运行,输入cmd,打开cmd后输入ping myhost.com 回车C:\Users\xxx>ping myhost.com正在 myohost.com [127.0.0.1] 具有 32 字节的数据:来自 127.0.0.1 的回复
阅读全文