08 2013 档案

摘要:http://www.cnblogs.com/mchina/category/486546.htmlhttp://mp.weixin.qq.com/wiki/index.php?title=%E9%80%9A%E7%94%A8%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3 阅读全文
posted @ 2013-08-30 19:14 Athrun 阅读(208) 评论(0) 推荐(0) 编辑
摘要:From :http://www.cnblogs.com/sunormoon/archive/2012/02/10/2345326.htmlvi 常用命令行1.vi 模式 a) 一般模式: vi 处理文件时,一进入该文件,就是一般模式了. b) 编辑模式:在一般模式下可以进行删除,复制,粘贴等操作,却无法进行编辑操作。等按下‘i,I,o,O,a,A,r,R’等 字母之后才能进入编辑模式.通常在linux中,按下上述字母时,左下方会出现'INSERT'或者‘REPLACE’字样,才可以 输入任何文字到文件中.要回到一般模式,按下[ESC]键即可. c) 命令行模式:在一般模式中, 阅读全文
posted @ 2013-08-26 13:31 Athrun 阅读(203) 评论(0) 推荐(0) 编辑
摘要:From :http://www.php100.com/html/webkaifa/Linux/2009/1106/3485.html系统信息arch 显示机器的处理器架构(1)uname -m 显示机器的处理器架构(2)uname -r 显示正在使用的内核版本dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)hdparm -i /dev/hda 罗列一个磁盘的架构特性hdparm -tT /dev/sda 在磁盘上执行测试性读取操作cat /proc/cpuinfo 显示CPU info的信息cat /proc/interrupts 显示中断cat /proc/me 阅读全文
posted @ 2013-08-26 13:27 Athrun 阅读(240) 评论(0) 推荐(0) 编辑
摘要:From :http://blog.csdn.net/wuerping/article/details/4164362/*Author : Andrew.Wu [ Created on : 2009/05/09 ]http://blog.oolanguage.com/erpingwu/windows-下-apache-virtual-hosts-简单配置/*/使用xampp时,一开始都会偷懒将项目放在 htdocs 下,省时省事。但这样做却会有小小问题,项目没有跟文档等放在同一项目文件夹下,管理起来显得不直观,麻烦。那该如何达到这个效果?一、本机DNS解析实现修改windows的hostsC: 阅读全文
posted @ 2013-08-23 12:46 Athrun 阅读(347) 评论(0) 推荐(0) 编辑
摘要:From :http://www.justintseng.com/windows7x64-environment-wamp-open-php_curl-in-components装上64位的windows7系统后,phpnow就无法使用了,于是安装了wamp,拥有非常多的选项可以按需选择。但一直以来无法开启Curl组件,php程序显示Call to undefined function curl_init()错误,在百度和谷歌里搜寻一番,全都是复制dll到system32里和修改php.ini文件的,完全无解。其实wamp已经非常智能化了,在设置里勾选开启Curl后,所有的工作都已经帮你配置完 阅读全文
posted @ 2013-08-23 10:44 Athrun 阅读(299) 评论(0) 推荐(0) 编辑
摘要:转:http://zhengdl126.iteye.com/blog/698206if (!-e $request_filename){rewrite "^/index\.html" /index.php last;rewrite "^/category$" /index.php last;rewrite "^/feed-c([0-9]+)\.xml$" /feed.php?cat=$1 last;rewrite "^/feed-b([0-9]+)\.xml$" /feed.php?brand=$1 last;re 阅读全文
posted @ 2013-08-22 23:16 Athrun 阅读(579) 评论(0) 推荐(0) 编辑
摘要:From :http://www.jzxue.com/wangzhankaifa/php/201108/08-8396.htmlThinkPHP支持通过PATHINFO和URL rewrite的方式来提供友好的URL,只需要在配置文件中设置 'URL_MODEL' => 2 即可。在Apache下只需要开启mod_rewrite模块就可以正常访问了,但是Nginx中默认是不支持PATHINFO的,所以我们需要修改nginx.conf文件。网上搜了很多方法都不奏效,研究了一天,发现通过以下的配置可以完美支持 'URL_MODEL' => 2 的情况了l 阅读全文
posted @ 2013-08-22 23:13 Athrun 阅读(323) 评论(0) 推荐(0) 编辑
摘要:1.http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/The following code is written according to the algorithm above excluding the database checking part for duplication:function shorturl($input) {$base32 = array ('a', 'b', 'c', 'd', 'e', & 阅读全文
posted @ 2013-08-21 23:29 Athrun 阅读(566) 评论(1) 推荐(0) 编辑
摘要:1 is.gd 他这个api简单:http://is.gd/api.php?longurl= 后面加网址就可以返回短址2Google URL Shortener API api地址:http://code.google.com/intl/zh-CN/apis/urlshortener/v1/getting_started.htmlfix yourself in right way,fix the world in right codes 阅读全文
posted @ 2013-08-21 23:24 Athrun 阅读(306) 评论(0) 推荐(0) 编辑
摘要:1.PHP生成二维码图像的类QRcodehttp://www.phper.org.cn/?post=128QRcode是用于生成二维条形码的开放源码 (LGPL) 库。提供 API 创建条码图像。使用方法如下:include('QRcode.php');// QRcode::png ('http://www.phper.org.cn', 'image.png'); // 导出图像QRcode::png ('http://www.phper.org.cn');更多的信息请参阅http://phpqrcode.sourceforge. 阅读全文
posted @ 2013-08-21 22:46 Athrun 阅读(2108) 评论(0) 推荐(0) 编辑
摘要:http://dongxin1390008.blog.163.com/blog/static/3179247820094279581256/通常情况下,我们有时候需要架设多个站点比如 我的web站点都放置在D:/www下,那么下面有3个站点的文件,分别是D:/www/abcD:/www/cdeD:/www/xyz那么为了能够在本地能测试到像http://www.xx.com的效果,怎么办呢?打开apache的httpd.conf文件,在文件的最后加上这么一段代码#这个对应第一个站点D:/www/abc,ServerName可以任意设置 ServerAdminwebmaster@axx.cn D 阅读全文
posted @ 2013-08-21 15:41 Athrun 阅读(272) 评论(0) 推荐(0) 编辑
摘要:转:http://www.cnblogs.com/cxd4321/archive/2008/11/20/1337776.html常见HTTP状态码200 OK301 Moved Permanently302 Found304 Not Modified307 Temporary Redirect400 Bad Request401 Unauthorized403 Forbidden404 Not Found410 Gone500 Internal Server Error501 Not Implemented100Continue 初始的请求已经接受,客户应当继续发送请求的其余部分101Swit 阅读全文
posted @ 2013-08-08 10:40 Athrun 阅读(199) 评论(0) 推荐(0) 编辑
摘要:From :http://www.51projob.com/a/PHP/20120905/602.html下午,还有一场比较大的面试等着我[虽然接到pps的录用电话,可是心里还是想去verycd试下,因为我想给自己一个选择的机会,看看到底哪家公司更适合我],之所以用"大"这个词来形容这场面试,不是因为它的场面很大,而是,我极有可能要花三个多小时进行笔试和"面"试。为了不让这几个小时白费,还是准备一下吧,临时抱抱佛脚。在网上随便点了一套很基础的php笔试题下来,看自己能否很快的以80%的准确率答出80%的题目,呵呵,还好不是很差,可以稍微松口气了。其实,这 阅读全文
posted @ 2013-08-02 21:53 Athrun 阅读(675) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示