上一页 1 ··· 7 8 9 10 11 12 13 下一页

2012年2月7日

摘要: MySQL字符集:cp1252 West European (latin1) ,解决乱码问题使用虚拟主机空间上的phpmyadmin操作数据库的时候,如果看到phpmyadmin首页上显示的MySQL 字符集为cp1252 West European (latin1),当我们导入数据时就会出现乱码,解决的方法是:在phpmyadmin首页的右边有个Language选项,把默认的中文 - Chinese simplified-gb2312改成 中文 - Chinese simplified,则左边的MySQL 字符集会变成UTF-8 Unicode (utf8) ,乱码问题得到解决!phpmya 阅读全文
posted @ 2012-02-07 21:10 php开发 阅读(296) 评论(0) 推荐(0) 编辑
 

2012年2月6日

摘要: 用stdClass转换数组为对象Php代码$arr = array(); $arr['a'] = 1; $arr['b'] = 2; $arr['c'] = 3; $arr = array(); ... 阅读全文
posted @ 2012-02-06 10:05 php开发 阅读(768) 评论(0) 推荐(0) 编辑
 

2012年2月5日

摘要: 无标题文档<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset 阅读全文
posted @ 2012-02-05 09:24 php开发 阅读(2130) 评论(3) 推荐(1) 编辑
 
摘要: 每天早上备份一次 MySQL 数据库并自动打包,同时删除 5 天前的备份文件. 分享如下.1. 环境: windows server 2003 + Apache 2.0 + PHP5 + MySQL 4.0.26 .2. 假设 PHP 安装目录为 D:/php ,MySQL 安装目录为 D:/mysql.3. 在 D:/php 下建立目录 WinRAR, 把你 winrar 安装目录下的 WinRAR.exe 和 RARReg.KEY 复制到 D:/php/WinRAR .4. D:/php 下建立文件 mysql_backup.php:/*///////////////////////// 阅读全文
posted @ 2012-02-05 09:21 php开发 阅读(1655) 评论(0) 推荐(0) 编辑
 

2012年2月1日

摘要: <?php$str='<p><img border="0" src="http://www.hzhuti.com/templets/zhuti/img/logo1.jpg" alt=""/></p>';$pattern="/<[img|IMG].*?src=['|"](.*?(?:[.gif|.jpg]))['|"].*?[/]?>/";preg_match_all($pattern,$str,$match); 阅读全文
posted @ 2012-02-01 10:59 php开发 阅读(360) 评论(0) 推荐(0) 编辑
 
摘要: //-----------------------------------------------------------------------------------// 函数名:CheckExtendName($C_filename,$A_extend)// 作 用:上传文件的扩展名判断// 参 数:$C_filename 上传的文件名// $A_extend 要求的扩展名// 返回值:布尔值// 备 注:http://www.hzhuti.com/android///------------------------------------------------------------ 阅读全文
posted @ 2012-02-01 10:44 php开发 阅读(859) 评论(1) 推荐(0) 编辑
 

2012年1月31日

摘要: GridView: A view that shows items in two-dimensional scrolling grid. The items in the grid come from the ListAdapter associated with this view. 简单说,GridView就是我们资源管理器平常见到的一个个文件的icon显示方式。 上面提及到了,GridView的Item是来自ListAdapter的,所以一般在Activity的onCreate使用GridView的代码:代码如下 复制代码 @Override public void onCreate(B 阅读全文
posted @ 2012-01-31 11:13 php开发 阅读(410) 评论(0) 推荐(0) 编辑
 
摘要: <?php function cacheArr(&$data){ if(!$data)throw new Exception('数组不能为空'); foreach($GLOBALS as $key=>$value){ $str=$GLOBALS[$key]; $GLOBALS[$key]='changed'; if(&$data=='changed'){ $strName=$key; break; } $GLOBALS[$key]=$str; } ob_clean(); ob_start(); echo "& 阅读全文
posted @ 2012-01-31 11:09 php开发 阅读(1290) 评论(0) 推荐(0) 编辑
 
摘要: 操作系统:windows2003软件:iis 6.0 .net2.0以上二、【配置伪静态步骤】1.右键点击 要设置网站的网站2.属性 ——》主目录 ——》配置——》3.如右侧窗口,找到 .aspx 扩展名——》编辑——》复制 可执行文件的路径——》关闭4.点击 添加——》粘贴 刚复制的 可执行文件路径5.扩展名填写 .html (如果是 .htm 或者 任意你想要的扩展都可以 前提是以后的应用程序扩展列表里边没有该扩展)6.不选中 确认文件是否存在7.确定下面是图解,图一:配置伪静态图二:配置伪静态图三:配置伪静态 阅读全文
posted @ 2012-01-31 11:04 php开发 阅读(612) 评论(0) 推荐(0) 编辑
 

2012年1月30日

摘要: 【apache配置禁止访问】1. 禁止访问某些文件/目录增加Files选项来控制,比如要不允许访问 .inc 扩展名的文件,保护php类库:代码如下 复制代码 <Files ~ ".inc$">Order allow,denyDeny from all</Files>禁止访问某些指定的目录:(可以用 <DirectoryMatch> 来进行正则匹配)代码如下 复制代码 <Directory ~ "^/var/www/(.+/)*[0-9]{3}"> Order allow,denyDeny from all 阅读全文
posted @ 2012-01-30 10:13 php开发 阅读(1315) 评论(0) 推荐(0) 编辑
 
上一页 1 ··· 7 8 9 10 11 12 13 下一页
 

一聚教程网