六级下拉菜单
摘要:<!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=GB23
阅读全文
posted @
2011-04-21 11:22
FreeSpider
阅读(390)
推荐(0) 编辑
mysql操作类
摘要:<?php/** * MYSQL 操作类 * @author yht_0616@126.com */class Mysql { private $debug = false; //true 打开数据库调试模式 false关闭数据库调试模式 private $version = ""; private $link_id = NULL; /** * 连接数据库 * * param string $dbhost 数据库主机名<br /> * param string $dbuser 数据库用户名<br /> * param string $dbpw
阅读全文
posted @
2011-04-18 09:38
FreeSpider
阅读(4307)
推荐(0) 编辑
鼠标划过出现子菜单
摘要:<head><script>startList = function() {if (document.all&&document.getElementById) {navRoot = document.getElementById("nav");for (i=0; i<navRoot.childNodes.length; i++) {node = navRoot.childNodes[ i ];if (node.nodeName=="LI") {node.onmouseover=function() {thi
阅读全文
posted @
2011-04-01 16:25
FreeSpider
阅读(459)
推荐(0) 编辑
去掉utf8 bom (找了好久才找到) 防止UTF-8页面上传服务器, 出现错位之类的错误
摘要:这东西把我害死了,交上去的项目文件均出现乱码,被技术组长狠狠地BS了一把。项目开始之初强调了utf8的编码,但居然还有no bom & bom 区分。痛苦啊!!搞了个 kill utf8-bom 的php脚本,实现 convert utf-bom to utf8-nobom。 把以下代码保存为:killbom.php,放在要转换的文件根目录下执行即可。<?php if (isset($_GET['dir'])){ //config the basedir $basedir=$_GET['dir']; }else{ $basedir = '.
阅读全文
posted @
2011-04-01 15:37
FreeSpider
阅读(1191)
推荐(0) 编辑
解决Warning: Cannot modify header information – headers already sent by
摘要:Warning: Cannot modify header information – headers already sent by….这类语句,造成这个原因是因为setcookie语句的问题。上网找了半天,有人说要在文件开头写上ob_start();output_buffering 改成4096 也失败失败。后来打开 php.ini 然后把 output_buffering 设为 on 。重起IIS或appache,OK。看来这才是解决办法。
阅读全文
posted @
2011-04-01 14:24
FreeSpider
阅读(516)
推荐(1) 编辑
公司官网ucenter搬家注意问题
摘要:1. ucenter/data/config.inc.php 和 uchome/config.php需要修改2. 需要修改网站目录的everyone的修改奇权限
阅读全文
posted @
2011-04-01 08:29
FreeSpider
阅读(211)
推荐(0) 编辑