ITeye博客

Xull Blog

xuyanlu · 共 11 篇文章

CentOS 6.2编译安装Apache2.4.1+MySQL5.5.21+PHP5.3.10

CentOS 6.2编译安装Apache2.4.1+MySQL5.5.21+PHP5.3.10详细过程 说明: 操作系统:CentOS 6.2 32位 系统安装教程:CentOS 6.2安装(超级详细图解教程) http://www.osyunwei.com/archives/1537.html 准备篇: 一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器 CentOS 设置IP地址、网关、DNS教程:http://www.osyunwei.com/archives/423.html 二、配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptabl…

2012-09-11 15:41 · 评论(0)

Jsonp 跨域

客户端请求: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <script src="./jquery-1.7.2.js"></script> </head> <body> <div id="vvgBox"> <ul…

2012-09-03 15:46 · 评论(0)

JavaScript 简单的钟表

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <style type="text/css"> div{ margin:0px auto; } </style> </head> <body> <div style="m…

2012-08-08 15:44 · 评论(0)

JavaScript 实现圆钟

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>JavaScript 时钟</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> </head> <body onload="showTime()"> <canvas id="drawing" width="320" height="240"> Your…

2012-08-08 15:41 · 评论(0)

Iframe 无刷新上传文件

1、【html 代码,主体是iframe与from表单的代码】 <span style="margin-bottom: 10px ;"><a href= "#" onclick="showdiv();" title= "iframe无刷新上传" class= "shortcut" >[修改头像]</a></span> <div id= "bg" ></div> <div id= "show" > <div style="height: 25px ;line-height: 25px ;background-color: #EAEAEA ;"><span style="margin-left:…

2012-07-31 11:29 · JavaScript脚本学习 · 评论(0)

MzTreeView应用

<!-- Json 循环列出树形菜单 注意点:tree.nodes[]中键不可加引号 --> <script type="text/javascript"> var tree = new MzTreeView("tree"); tree.icons["property"] = "property.gif"; tree.icons["css"] = "collection.gif"; tree.icons["event"] = "collection.gif"; tree.icons["book"] = "book.gif"; tree.iconsExpand["book"] = "booko…

2012-07-23 14:42 · JavaScript脚本学习 · 评论(0)

Mysql安装

安装MySQL:(以安装5.1版本为例) 1.双击你下载的安装程序,然后会进入一个‘Welecom to the Setup Wizard for MySQL Server 5.1’的图形界面!在这里不用做任何操作,点击next,进入下一步; 2.点击后,会进入让你选择安装类型的画面:Typical(典型安装)、Complete(完全安装)、Custom(自定义安装),现在以自定义安装为例,点击next,进入下一步; 3.进入后,会出现一个画面,是用来更改安装目录的,当然你也可以手动指定安装目录,(Typical、Complete默认是安装在C盘符下),更改好后,点击next进入下一个画面;…

2011-12-06 14:03 · MySql学习 · 评论(0)

PHPExcel用法

PHPExcel下载地址: http://phpexcel.codeplex.com/ 导入PHPExcel.php或者其他文件 require_once 'PHPExcel.php'; ////require_once'PHPExcel/Writer/Excel5.php'; // 用于其他低版本xls // or ////require_once'PHPExcel/Writer/Excel2007.php'; // 用于excel-2007 格式 // 创建一个处理对象实例 $objExcel = new PHPExcel(); // 创建文件格式写入对象实例, uncomment //…

2011-12-06 13:52 · PHP脚本 · 评论(0)

PHP下载文件(二)

其中的$filepath为文件路径,$loadname 为下载文件的名字,或者是自己定义的名字 if(headers_sent()){ die("headers Sent"); } $loadName = !empty($loadName) ? $loadName : time(); $info = get_headers($filePath); if(in_array('HTTP/1.1 200 OK', $info)){ //取出传过来文件的大小 $loadName = iconv("UTF-8", "GBK" , $loadName); $fsize = $info['5']; //截…

2011-11-25 13:49 · PHP脚本 · 评论(0)

php 下载方式总结

下载文档的总结 1.出现乱码的原因:1)header头:定义成utf-8的形式 header("Content-type:text/html;charset=utf-8"); 2)<metahttp-equiv="Content-type";Content="text/html;charset=utf-8"> 3)保存的时候定义成utf-8的格式 4)字符集为utf8的格式 set names utf8 需要注意的事项: 1.批量下载的思路: 见一个临时的压缩包 把所要下载的文件压缩进压缩包 下载压缩包 删除压缩包,减少磁盘上的资源 2.代码规范:写上注释 3.数组必须付一个初始值 $arr…

2011-08-26 12:43 · PHP脚本 · 评论(0)

apache 测试工具ab说明

就是APACHE自带的测试工具AB(apachebenchmark).在APACHE的bin目录下。 格式:./ab[options][http://]hostname[:port]/path 参数: -nrequestsNumberofrequeststoperform //在测试会话中所执行的请求个数。默认时,仅执行一个请求 -cconcurrencyNumberofmultiplerequeststomake //一次产生的请求个数。默认是一次一个。 -ttimelimitSecondstomax.waitforresponses //测试所进行的最大秒数。其内部隐含值是-n50000…

2011-06-20 18:56 · 其他 · 评论(0)