自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (14)
  • 收藏
  • 关注

转载 Install PEAR and PECL on Mac OS X

The following instructions install PEAR and PECL on Mac OS X under/usr/local/. PECL is bundled with PEAR. So this is as simple as installing PEAR on Mac OS X.PEAR is PHP’s Package Repository and m

2015-12-29 15:13:03 1364

转载 How to Install PHP intl extension on OS X

Step 1. Install ICU Libraries with HomebrewFirst we’ll need to install any dependencies. To quote the intl package description: “The Internationalization extension exposes functionality of the ICU li

2015-12-29 15:04:23 854

转载 如何在Mac OSX 10.10 Yosemite上设置虚拟主机

How to set up Virtual Hosts in Apache on Mac OSX 10.10 YosemiteAugust 1, 2014 29 CommentsSetting up Virtual Hosts in Apache on Mac OSX 10.10 Yosemite is straight forward after you have you

2015-12-24 15:20:00 855

转载 Install MySQL 5.5.30 on RHEL/CentOS 6-5, Fedora 18-12

This how-to guide is to install or upgrade your MySQL version on RHEL/CentOS 6-5 and Fedora 18,17/16/15/14/13/12 using Remi repository via YUM utility. But before moving into further steps let’s

2015-05-08 13:06:11 866

原创 CentOS安装Git服务器 Centos 6.5 + Git 1.9.0 + gitosis (亲自安装)

查看Linux系统服务器系统版本 # cat /etc/redhat-release # 查看系统版本 CentOS release 6.5 (Final)在服务器上安装git#sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel#cd ~#wget https

2015-04-30 17:14:35 2449

转载 How to set up a repository's origin branch to be SSH

How to set up a repository’s origin branch to be SSHThe GitHub repository setup page is just a suggested list of commands (and GitHub now suggests using the HTTPS protocol). Unless you have administrat

2015-04-23 18:08:24 530

转载 Generating SSH keys on OS X

Generating SSH keysMACWINDOWSLINUXALLSSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH

2015-04-23 16:02:47 552

原创 dependency analysis warning: The copy bundle resources build phase contains

dependency analysis warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'xxx/Info.plist'.出现Warning的原因遇到这种情况,是因为在合成项目,或者添加项目文件时,将Info.plist 文件以下列方式加入到了项目中。

2015-04-07 15:37:33 1868

原创 解决 apache2/modules/libphp5.so:cannot restore segment prot after reloc: Permission denied的方法

If you face this error you can use below chcon command to change the Selinux security context for the file :chcon -t textrel_shlib_t /usr/local/apache/modules/libphp5.so

2013-01-16 15:03:35 681

原创 win7用easybcd从硬盘安装ubuntu 11.10重启出现error 15 file not found错误

错误提示为:找不到文件。错误原因:1、你的vmlinuz、initrd.z和ubuntu.iso文件没有放对位置。                    2、可能C盘不是(hd0,0),如果不是就应该是(hd0,1),因为win7可能在C盘前面有个默认的系统分区

2012-10-15 15:50:32 5946

原创 php实现约瑟夫环经典问题

问题描述:        约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。       这个就是约瑟夫环问题的实际场景,有一种是要通过输入n,m,k三个正整数,来求出列的序列。下面我们来分析下列

2012-03-06 14:00:02 1609

原创 php中const与define的使用区别 详解

1、const用于类成员变量定义,一旦定义且不能改变其值。define定义全局常量,在任何地方都可以访问。2、define不能在类中定义而const可以。 3、const不能在条件语句中定义常量if (...) { const FOO = 'BAR'; // invalid}butif (...) { define('FOO', 'BAR');

2011-12-16 23:08:44 797

原创 php图片缩放代码-按比例缩放或截取指定大小的缩略图 非常好用的一个方法

/********************************************************** * function resize: * * = creates a resized image based on the max width * specified as well as generates a thumbnail from * a re

2011-12-14 16:12:12 1815

原创 强大的php无限分类试题(demo)

题目: 见图片, 该图是某网页的一个区域的截图,分类的级数不固定. 现有一个PHP变量: $cats = array( array( 'id' => 1, 'name' => '学术和教育', 'children' => array( array

2011-12-13 13:37:14 681

原创 格式化输出 printf() 详解

printf():格式:%['padding_character][-][width][.precision]type      所有的转换说明都是以%开始,如果想打印一个%符号,必须用%%.      参数'padding_character是可选.它将被用来填充变量直至所指定的宽度.该参数的作用就在变量前面填充.默认的填充字符是一个空格,如果指定0或者空格,就不需要' 单引号作为前

2011-11-08 14:33:16 1002

原创 批量转换文件格式php代码

/** * 文件重命名 * @param $directory The dir of files * @param $ext1 The original of filename extension * @param $ext2 Need to convert the filename extension * @param $verbose * @return $num

2011-11-04 14:51:37 953

转载 Windows下的Memcache安装

<br />1. 下载memcache的windows稳定版,解压放某个盘下面,比如在c:/memcached<br />2. 在终端(也即cmd命令界面)下输入 ‘c:/memcached/memcached.exe -d install’ 安装<br />3. 再输入: ‘c:/memcached/memcached.exe -d start’ 启动。NOTE: 以后memcached将作为windows的一个服务每次开机时自动启动。这样服务器端已经安装完毕了。<br />4.下载php_memcach

2011-04-08 16:01:00 355

转载 DEDECMS最新5.7版在Windows下的Memcache安装

<br />一,织梦后台后台设置<br />进入系统后台,在[系统基本参数]下面的"性能选项"卡当中,关于memcache进行如下配置:<br />cfg_memcache_enable : 是否启用memcache缓存,如果为否(N),默认使用文件缓存;<br />这个选项设置为开启:Y<br />cfg_memcache_mc_defa : 默认memcache缓存服务器地址;<br />这个选项中填入服务器地址:memcache://127.0.0.1:11211/default127<br />cf

2011-04-08 16:01:00 1389

原创 php 快速排序算法

function Quick_sort2($str,$s,$t){ $i = $s + 1; $j = $t; $x = $str[$s]; while ($i<=$j){ while ($str[$i]<=$x && $i<=$j) $i++; while ($str[$j]>=$x && $j>=$i) $j--;

2010-12-21 13:20:00 397

原创 php 判断是否有中文字符的两种方法

1、用正则判断是否为中文的代码文件为GB2312格式:$str= 'incode';//$str='程序设计';if (!preg_match("/^[".chr(0xa1)."-".chr(0xff)."]+$/",$str)){      echo '请您使用中文,谢谢!';}?>文件为UTF-8格式:把正则判断改为://if(pre

2010-08-25 12:59:00 2419

原创 php 子类中如何调用父类的变量和方法

<?phpclass A{ public $a1='a1'; protected $a2='a2'; function test(){ echo "hello!"; }}class B extends A{//若A类和B类不在同一文件中 请包含后(include)再操作 public $a1='b1'; function

2010-08-03 12:40:00 21890 3

转载 mysql忘记root密码的解决

mysql忘记root密码的解决一. MySQL密码的恢复方法之一 如果忘记了MySQL的root密码,可以用以下方法重新设置: 1. KILL掉系统里的MySQL进程; killall -TERM mysqld 2. 用以下命令启动MySQL,以不检查权限的方式启动; safe_mysqld --skip-grant-tables & 3. 然后用空密码方式使用r

2010-04-15 18:00:00 519

原创 电子时钟js代码

<!--function stime(){ var da=new Date() var h=da.getHours() var m=da.getMinutes() var s=da.getSeconds() m=checktime(m) s=checktime(s) document.getElementById('txt').innerHTML=""+h+":"+m+":"+s+

2010-04-11 20:06:00 1444

原创 js动态添加删除表格

                    增加Table行                function addRow()        {        //添加一行        var table = document.getElementById("testTb1");        var len = table.rows.length;         var newTr = test

2010-04-08 10:40:00 398

原创 js代码-不刷新网页更换验证码

function reloadcode(){document.getElementById('safecode').src = 'fristphp.php?' + Math.random(); //fristphp.php为图片生成代码}不区分大小写  请换一张

2010-03-19 11:53:00 1825

UIAlertView\UIAlertController 文字左对齐实现

实现UIAlertView、UIAlertController显示消息的左对齐设置,并且可以自适应文字高度,还能根据自己的需要设置文字的对齐方式。在ios6、ios7、ios8上都能很好的显示。

2014-12-17

SoapUI-Pro4.5.1破解文件与破解说明

破解步骤: 安装后,替换安装目录lib的 Protection-4.6.jar 文件; 运行程序,导入 soapui.key 破解完成。 亲自测试可用。

2013-09-02

完整的linux(RedHat)+php5.3.10+mysql5.5.19+apache2.2.22安装配置说明

完整的linux(RedHat5.4)+php5.3.10+mysql5.5.19+apache2.2.22安装配置说明,redhat和centos系统通用,让你轻松的完成php在linux环境下搭建一个完美的LAMP平台。完整的LAMP环境安装手册,php学习者必备的文档说明。

2013-01-16

The Objective-C Programming Language

If you are familiar with C and have programmed with object-oriented languages before, the following information should help you learn the basic syntax of Objective-C. Many of the traditional object-oriented concepts, such as encapsulation, inheritance, and polymorphism, are all present in Objective-C. There are a few important differences, but those differences are called out in this article and more detailed information is available if you need it.

2012-10-10

Cygwin安装与配置详解

本篇内容详细介绍了cygwin的安装过程,资源配置及简单命令的使用等信息。cygwin是一个在windows平台上运行的unix模拟环境,它对于学习unix/linux操作环境,或者从unix到windows的应用程序移植,或者进行某些特殊的开发工作,尤其是使用gnu工具集在windows上进行嵌入式系统开发,非常有用。

2011-12-18

php中const与define的区别 具体归纳详细介绍

分析出在php中const与define之间的不同之处,文字与实例先结合,归纳详细,介绍明了,一看就懂。

2011-12-16

php 读取excel文件类

利用php的类读取xls文件,并返回数组。可以自定义输出数据的编码格式

2011-11-04

mysql中文只用手册

PHP100是一个专业的php教学 源码 资源站 PHP文章 PHP源码

2010-03-06

php中文手册 查询

php使用的查询的好工具 PHP文章 PHP源码

2010-03-06

毕业设计流程管理系统

附有毕业设计word文档,以及sql数据库源代码

2010-03-06

2010祝福管理 写祝福语

安装之后记得删除install.php 祝福管理:http://程序目录/del.php?id=不良祝福语序号&pass=admin &pass=admin这里的admin是在del.php第二行里的密码,自己修改 信息配制在config.php这个文件内!

2010-03-06

运用EXT技术编写的班级通讯录

运用EXT技术编写的班级通讯录,PHP+MYSQL数据库,页面及数据库编码均为UTF8。通讯录界面是用EXT默认皮肤风格完成,清新自然,无刷新添加、删除通讯录数据,每列可拖动宽度,并且可以更换显示位置,程序附有数据库脚本文件,比较适合学习在PHP中使用EXT技术。

2010-03-06

php防刷新网页计数器

利用session变量控制防止页面的刷新!

2010-01-19

个人简单留言板php

php语言,分页显示,有管理功能,可添加删除!

2010-01-19

空空如也

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

TA关注的人

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