自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

原创 金士顿KTD-INSP6000C/2G内存

修订号:9905295-091.A00LF

2015-06-26 21:40:27 1608

原创 lnamp 安装(CentOS-5.10, nginx-1.6.0, httpd-2.4.9, mysql-5.6.17, php-5.5.12)

yum -y install gcc gcc-c++  make automake autoconf kernel-devel ncurses-devel libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel pcre-devel libtool-libs freetype-devel gd zlib-devel fil

2014-05-30 16:03:44 3110

转载 MySQL 设置远程访问

原文地址:http://snowolf.iteye.com/blog/207945MySQL远程访问,也就是通过ip访问MySQL服务,MySQL对于安全的要求是非常严格的,需要授权。 1.本地访问 Sql代码  GRANT ALL PRIVILEGES ON *.* TO admin@localhost IDENTIFIED BY 'admin' WITH

2013-02-25 11:13:50 853

转载 MySQL5.1.45 Innodb plugin安装记录

原文件地址:http://hi.baidu.com/chenliujin/item/0715f8144a566a5c2b3e22ab[root@mysql ~]# more /etc/sysconfig/selinux# This file controls the state of SELinux on the system.# SELINUX= can take one of thes

2012-10-25 16:27:41 2389

原创 javascript + css 下拉菜单 2.0版

javascript部分原创,css部分转载 New Document * { padding:0; margin:0; } body { font-size:small; } #navigation { margin:20px; } #navigation, #navigation li ul { list-style-ty

2012-10-25 10:31:45 524

转载 javascript + css下拉菜单

JavaScript下拉菜单 * { padding: 0; margin: 0; } body { font-family: verdana, sans-serif; font-size: small;

2012-10-24 17:26:08 487

原创 正则表达式

Email验证^(?:\w+\.?)*\w@(?:\w+\.)+\w+$

2012-10-18 10:54:45 424

原创 php文件缓存类

<?php/** * 文件缓存类 */class Infobird_Cache_File { // 缓存文件基础目录 private $basePath; // 目录层次级别 private $level; private static $instance; private function __construct($basePath, $level) { $this-

2012-10-16 09:30:16 860

原创 php二维数数组二分查找

/** * 二维数数组二分查找, 查找成功返回数组下标,失败返回-1 * @param array $array 数组数据 * @param string $key 查找的键 * @param string $queryString 查询的字符串 * @return int */function bsearch($array, $key, $queryString) { $low

2012-09-25 11:25:27 1769

转载 php二维数组排序

原文地址:http://blog.csdn.net/why_up/article/details/7992020/** * @package 二维数组排序 * @version $Id: FunctionsMain.inc.php,v 1.32 2005/09/24 11:38:37 wwccss Exp $ * * * Sort an two-dimension arr

2012-09-25 11:23:35 867

原创 解决mysql启动报错Starting MySQL.Manager of pid-file quit without updating file

解决mysql启动报错Starting MySQL.Manager of pid-file quit without updating file错误日志:120924 15:53:34 mysqld_safe Starting mysqld daemon with databases from /data0/mysql/3306/data120924 15:53:34 [Warning

2012-09-24 16:01:26 2631

转载 网卡eth0,未识别的端口

原文地址:http://blog.163.com/liu_nongfu/blog/static/190794142201243111198827/用service network restart 后,有时会得到这样的提示 Shutting down loopback interface:                          [  OK  ] Bringin

2012-09-22 19:35:44 8832 1

原创 php面试题

抢沙发数据统计。假设我们有一个文章系统,每个文章都可以被留言。留言据保存在 comments 表中。comments表结构如下字段名含义comment_id留言id(主键)article_id被留言的文章的iduid写此留言

2012-09-18 16:03:40 954

转载 minibufexplorer导致vim出现多个窗口的错误

原文地址:http://www.cppblog.com/default.html?more=1&p&page=2去年开始使用vim,加上插件minibufexplorer.vim之后,总会有这种情况,多个窗口,其他插件总是不能和minibufexplorer.vim好好相处,总会有多个窗口的错误,尤其是切换buffer时,会有如下情况出现:最糟糕的是不知道设么时候还

2012-09-17 10:32:35 5900 1

原创 Zend Framework中PDO开启load data infile功能

Zend Framework中PDO开启load data infile功能:在配置文件中加入resources.db.params.driver_options.1001 = 1

2012-09-14 11:44:48 1022

原创 PDO报错:Cannot execute queries while other unbuffered queries are active.

错误信息:Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enabl

2012-08-29 16:14:14 10277 1

原创 常见问题

[zend framework 禁用视图]class FooController extends Zend_Controller_Action {public function init() {$this->_helper->viewRenderer->setNoRender();}}---------------------------------------------

2012-08-03 13:26:36 524

原创 php文件上传类

<?php/** * 文件上传类Upload.php * * @author [email protected] * @version $Id: Upload.php,v 1.0 2012/06/14 14:47:43 ihelloworld Exp $ * @package system * */class Gsite_File_Upl

2012-08-01 14:42:14 2000

原创 js版本计算器第三版

计算器 input { width:50px; } #Backspace { width:120px; } #CE { width:110px; } #result { width:300px; } function Calculator() { this.value = ''; this.current = '

2012-07-19 09:20:42 689

转载 屏幕截图及屏幕标尺工具

FastStone Capture

2012-07-02 23:31:32 2791 3

原创 js版本计算器第二版

计算器 input { width:50px; } #Backspace { width:120px; } #CE { width:110px; } #result { width:300px; } function Calculator() { this.value = ''; this.current = '

2012-07-02 23:24:17 1738

原创 js版本计算器

计算器 input { width:50px; } #Backspace { width:120px; } #CE { width:110px; } #result { width:300px; } function Calculator() { this.prevNum = '0'; this.operator

2012-07-02 17:59:23 503

转载 PHP的XSS攻击过滤函数

<?php function RemoveXSS($val) { // remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed // this prevents some character re-spacing such as // note that you

2012-06-29 15:35:13 997

转载 php检测访问者是否为手机

<?phpfunction isMobile() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $mobile_agents = Array("240x320", "acer", "acoon", "acs-", "abacho", "ahong", "airness", "alcatel", "amoi", "an

2012-06-29 14:05:52 2665

转载 php字符串截取,检测字符串编码方法

<?php/** * 中文字符串截取 */function subString($str, $start, $length) { $i = 0; //完整排除之前的UTF8字符 while($i < $start) { $ord = ord($str{$i}); if($ord < 192) { $i++;

2012-06-28 16:30:00 2076

原创 php 获取时间(今天,昨天,三天内,本周,上周,本月,三年内,半年内,一年内,三年内)

<?php/** * php 获取时间(今天,昨天,三天内,本周,上周,本月,三年内,半年内,一年内,三年内) * * author:[email protected] * date:2012-06-28 16:00:01 */$q = $_GET['q'] ? intval($_GET['q']) : 0;$text = '';$now = time();

2012-06-28 15:59:59 17238

原创 linux下nginx+php+mysql环境搭建

++++++++++++++++++++++++++++++++++++++++++++++linux下nginx+php+mysql环境搭建++++++++++++++++++++++++++++++++++++++++++++++操作系统    : [CentOS6.0]服务器     : [nginx-1.1.8]PHP      : [php-5.2.6]数据库

2011-12-01 10:16:03 29838

原创 linux下subversion+apache安装

++++++++++++++++++++++++++++++++++++++++++++++linux下subversion+apache安装++++++++++++++++++++++++++++++++++++++++++++++操作系统    : [CentOS6.0]svn             : [subversion-1.6.17]apache

2011-11-29 15:59:05 2237 3

原创 linux下subversion安装

++++++++++++++++++++++++++++++++++++++++++++++linux下subversion安装++++++++++++++++++++++++++++++++++++++++++++++操作系统    : [CentOS6.0]sqlite          : [sqlite-autoconf-3070900]svn          : [

2011-11-28 11:58:02 2437

原创 虚拟机下的linux文本模式上网设置

vi /etc/sysconfig/network-scripts/ifcfg-eth0#开机协议, 有dhcp及staticBOOTPROTO=dhcp#是否开机启动ONBOOT=yes

2011-11-27 11:04:58 1088

原创 linux下Redis与phpredis扩展安装

++++++++++++++++++++++++++++++++++++++++++++++linux下Redis与phpredis扩展安装++++++++++++++++++++++++++++++++++++++++++++++操作系统      : [CentOS6.0]redis       : [redis-2.4.3]phpredis      : [phpredi

2011-11-23 13:44:11 13504 5

原创 linux下LAMP环境搭建

++++++++++++++++++++++++++++++++++++++++++++++linux下LAMP环境搭建++++++++++++++++++++++++++++++++++++++++++++++操作系统    : [CentOS6.0]服务器     : [httpd-2.2.9]PHP         : [php-5.2.6]数据库     : [my

2011-11-23 11:11:48 17122 7

原创 Windows下Nginx+php环境搭建

++++++++++++++++++++++++++++++++++++++++++++++Windows下Nginx+php环境搭建++++++++++++++++++++++++++++++++++++++++++++++操作系统    : [windows xp professional sp3]服务器     : [nginx-0.8.21]PHP         :

2011-11-11 18:09:21 3524

原创 Windows下LAMP环境搭建

++++++++++++++++++++++++++++++++++++++++++++++Windows下LAMP环境搭建++++++++++++++++++++++++++++++++++++++++++++++操作系统    : [windows xp professional sp3]服务器     : [apache-2.2.8]PHP      : [php-5.2

2011-01-10 18:14:00 11425

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除