05 2012 档案

关于ThinkPHP框架在Linux下运行时的一些问题
摘要:今天在虚拟机中安装了一套wdlinux基于CentOS 5.6的lamp安装版,上传TP2.1的Rbac实例代码(其他代码也有些小问题)到服务器上后,设置了Runtime目录777权限后,运行一直出现验证码错误,自己尝试解决,最终也没有找到问题出在哪里(因为在windows环境下是正常无错的),本人刚开始接触PHP,几乎不能说自己有啥水平,实在没有办法了,只好上来求助各位高手了,先在这里谢谢啦~===================================已经自己解决啦,把PHP.ini配置中的session.save_path = /tmp打开,然后将Linux系统下的tmp目录权限 阅读全文

posted @ 2012-05-31 14:05 Roc ps'king 阅读(3235) 评论(0) 推荐(0)

js跳转页面方法
摘要:<span id="tiao">3</span><a href="javascript:countDown"></a>布丁足迹;秒后自动跳转……<meta http-equiv=refresh content=3;url='/search/billsearch.jsp'</ul><!--脚本开始--><script language="javascript" type="">function countDown 阅读全文

posted @ 2012-05-26 10:59 Roc ps'king 阅读(444) 评论(0) 推荐(0)

按钮式的分享
摘要:<!-- JiaThis Button BEGIN --><div id="ckepop"> <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt" target="_blank"><img src="http://v2.jiathis.com/code_mini/images/btn/v1/jiathis1.gif" border="0" />< 阅读全文

posted @ 2012-05-24 00:05 Roc ps'king 阅读(152) 评论(0) 推荐(0)

js直接返回顶部
摘要:<!-- UJian Button BEGIN --><script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script><!-- UJian Button END --> 阅读全文

posted @ 2012-05-24 00:00 Roc ps'king 阅读(158) 评论(0) 推荐(0)

侧边栏式分享 空间
摘要:<!--分享的js--><!-- JiaThis Button BEGIN --><script type="text/javascript"src=" http://v1.jiathis.com/code/jiathis_r.js"charset="utf-8"></script><!-- JiaThis Button END -->//不带标识的分享.为青色之友分享2字!-- Baidu Button BEGIN --><script type="t 阅读全文

posted @ 2012-05-23 23:52 Roc ps'king 阅读(432) 评论(0) 推荐(0)

3个遮罩层
摘要:<!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=gb2 阅读全文

posted @ 2012-05-22 23:36 Roc ps'king 阅读(217) 评论(0) 推荐(0)

jQuery遮罩层效果
摘要:<!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 name="Generator" content="EditPlus"> <meta name="Author" con 阅读全文

posted @ 2012-05-22 23:24 Roc ps'king 阅读(1467) 评论(2) 推荐(0)

登录遮罩(asp)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="SiteMaster" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St 阅读全文

posted @ 2012-05-22 23:14 Roc ps'king 阅读(373) 评论(0) 推荐(0)

jQuery点击按钮后弹出遮罩层,有关闭按钮
摘要:<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>jQuery弹出层效果</title><meta content="网页特效,特效代码,jQuery,css特效,Js代码,广告幻灯,图片切换" name="keywords" /><meta content="jQuery弹出层效果,有关闭按钮,代码简单易懂,你可以随意修改弹出层的参数。" nam 阅读全文

posted @ 2012-05-22 23:10 Roc ps'king 阅读(426) 评论(0) 推荐(0)

用Jquery获取checkbox多个选项
摘要:<!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 @ 2012-05-21 23:41 Roc ps'king 阅读(201) 评论(0) 推荐(0)

php+mysql实现列表按拼音首字母排列
摘要:在很多商城系统中,都有把各种品牌按拼音排序,如果直接用sql的order的话,会先显示英文再显示中文,当然也不好判断对应的是哪个字母。昨天自己尝试的写了一下,基本的效果出来了。写的是utf-8版本的,如果是GBK版本,可以把代码中转化编码的那一段去掉。<?php include "fun.php";$conn = @ mysql_connect("localhost", "root", "") or die("数据库连接错误"); mysql_select_db("user&qu 阅读全文

posted @ 2012-05-21 21:59 Roc ps'king 阅读(1982) 评论(0) 推荐(0)

ThinkPHP + Discuz 整合方法
摘要:以下是Discuz6的整合方法,discuz5请按照里面的说明进行相应的修改,也可以使用了。1.在项目的action目录下信件PublicAction.class.php。这样写:class PublicAction extends Action{function login(){ $this->display();if(!isset($_SESSIONC('USER_AUTH_KEY'))||$_SESSIONC('USER_AUTH_KEY')==0) {$this->display();return ;}else {redirect(__APP 阅读全文

posted @ 2012-05-21 11:02 Roc ps'king 阅读(386) 评论(0) 推荐(0)

uchome调用展示代码时,经常用到的几个全局变量与常量
摘要:变量:$_SC['siteurl']:SupeSite的URL,如http://localhost/s$_SC['bbsurl']:SupeSite聚合的论坛的URL,如http://localhost/d$_SC['uchurl']:SupeSite聚合的UCenter Home的URL,如http://localhost/h$_SCONFIG['attachmenturl']:SupeSite的附件URL,如http://localhost/s/attachments$_SCONFIG['htmlurl']:S 阅读全文

posted @ 2012-05-20 21:17 Roc ps'king 阅读(281) 评论(0) 推荐(0)

uchome 二次开发
摘要:【UCHome二次开发】资料整理<3> 2012年5月11日10:47:27注意:此文和UCHome的Manyou开发模式不同,Manyou是利用Discuz的开放平台MYOP开发公共插件,可供所有基于UCHome的网站使用;而此文涉及的开发模式与Manyou不同,是在本地开发,以插件的形式扩展UCHome原有功能。UCHome是Discuz的一款SNS程序,能让每个网站都用拥有自己的Facebook/校内。Discuz也提供了MYOP开发者平台,所有开发者都可以在此平台上开发自己的应用程序供其他UCHome网站使用,不但可以为自己的网站增加功能,同时也能将自己网站的功能推广到数以 阅读全文

posted @ 2012-05-11 10:48 Roc ps'king 阅读(469) 评论(0) 推荐(0)

wamp 配置虚拟主机
摘要:<VirtualHost *:80> DocumentRoot D:/ds/www ServerName www.ds.com<Directory "D:/ds/www"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all</Directory></VirtualHost> 阅读全文

posted @ 2012-05-11 10:03 Roc ps'king 阅读(135) 评论(0) 推荐(0)

导航