您好,欢迎光临! 推荐您使用Chrome浏览器访问本站。

Linux服务器利用putty搬家、传输、解、压缩转移等常用命令实战

803 views
Linux服务器利用putty搬家、传输、解、压缩转移等常用命令实战cd /网站目录 ——进入目录 tar -czvf 文件名.tar.gz 打包目录 ——网站打包 tar -xzvf 文件名.tar.gz ——解压 rm -rf * ——删除 find ./ -type d -exec chmod 755 {} \; ——文件夹权限 find ./ -type f -exec chmod 644 {} \; ——文件权限 tar czvf – 文件目录 | ssh root@b服务器ip tar xzf – -C /网站目录 ——服务器之间文件转移 使用WDCP挂载云磁盘数据盘经验 http://bbs.aliyun.com/read/171133.html?spm=5176.7114037.1996646101.7.RiZ2dk&pos=3 使用WDCP挂载云磁盘数据盘经验视频 http://vodcdn.video.taobao.com/pl......

php 解析xml 的四种方法

697 views
php 解析xml 的四种方法XML处理是开发过程中经常遇到的,PHP对其也有很丰富的支持,本文只是对其中某几种解析技术做简要说明,包括:Xml parser, SimpleXML, XMLReader, DOMDocument。 1。 XML Expat Parser: XML Parser使用Expat XML解析器。Expat是一种基于事件的解析器,它把XML文档视为一系列事件。当某个事件发生时,它调用一个指定的函数处理它。Expat是无验证的解析器,忽略任何链接到文档的DTD。但是,如果文档的形式不好,则会以一个错误消息结束。由于它基于事件,且无验证,Expat具有快速并适合web应用程序的特性。 XML Parser的优势是性能好......

mysql(php)根据一个坐标求得与数据库中其他坐标的距离

746 views
mysql(php)根据一个坐标求得与数据库中其他坐标的距离 set @x1=114.172668; set @y1=22.314825; set @dist=100; SELECT X(locgeo_baidu),Y(locgeo_baidu),AsText(locgeo_baidu), ROUND( 6378.138*2*ASIN( SQRT( POW(SIN((@y1*PI()/180-Y(locgeo_baidu)*PI()/180)/2),2) +COS(@y1*PI()/180) *COS(Y(locgeo_baidu)*PI()/180) *POW(SIN((@x1*PI()/180-X(locgeo_baidu)*PI()/180)/2),2) ) )*1000 )AS distance from wfgeoloc where locgeo_baidu!='' having distance<@dist ORDER BY distance asc   参考php:http://www.cnblogs.com/wangqishu/p/38......

curl请求https

837 views
curl请求https有2种做法: 方法一、设定为不验证证书和host。 在执行curl_exec()之前。设置option curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSLVERSION, 3); 方法二、设定一个正确的证书。 下载新的ssl:http://curl.haxx.se/ca/cacert.pem curl 增加下面的配置 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,true); ; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch,CURLOPT_CAINFO,dirname(__FILE__).&......

Unable to execute dex: method ID not in [0, 0xffff]: 65536

844 views
Unable to execute dex: method ID not in [0, 0xffff]: 655361、Android系统中,一个Dex文件中存储方法id用的是short类型数据,所以导致你的dex中方法不能超过65k 2、在2.3系统之前,虚拟机内存只分配了5M   参看: http://blog.csdn.net/liu1164316159/article/details/40823871 http://www.tuicool.com/articles/vyYBr2 http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/1223/2206.html http://www.cnblogs.com/frydsh/archive/2013/02/20/2918969.html http://blog.sina.com.cn/s/blog_4e1e357d0102wy8q.html