随笔分类 -  Php

摘要:<? //设置PHPExcel类库的include path set_include_path('.'. PATH_SEPARATOR . 'D:\Zeal\PHP_LIBS' . PATH_SEPARATOR . get_include_path()); /** * 以下是使用示例,对于以 //// 开头的行是不同的可选方式,请根据实际需要 * 打开对应行的注释。 * 如果使用 Excel5 ,输出的内容应该是GBK编码。 ... 阅读全文
posted @ 2013-04-16 09:33 墨迹哥's 阅读(223) 评论(0) 推荐(0)
摘要:该系统是1.0的版本,目前接近完工了。将会有良好的web交互,后续会不断的完善,第一个版本功能相对比较少。今天解决了入库的bug。整个系统围绕着两个语言来实现,php具有其独特的优势,在web交互上能够让人良好的处理日常任务。perl在底层处理数据,效率上,多线程使用方便,处理迅速。下面是入库的图:D: 阅读全文
posted @ 2013-04-12 16:44 墨迹哥's 阅读(167) 评论(0) 推荐(0)
摘要:一直都想写一个类似与检测使用的system。现在估计有机会了。可以好好计划下。今天看了下php类这块的东西。写了段代码。贴一下,以后很好理解!~<?php header("Cache-Control: no-cache, must-revalidate"); flush();?><? class web_select{ protected function website(){ # review } } class web_post extends web_select{ public function ... 阅读全文
posted @ 2013-04-07 21:37 墨迹哥's 阅读(162) 评论(0) 推荐(0)
摘要:Today I install the perl module,for php5.but is error.I thing is the php_perl.c not working.I google find the answer. then , I find the answer is download new php_perl.c ,and modify php_perl.h . I try to again . then perl module is working.download this php_perl.c .wget https://raw.github.com/do-aki 阅读全文
posted @ 2013-04-05 23:54 墨迹哥's 阅读(236) 评论(0) 推荐(0)
摘要:Debian install pcel not ok.I think this module is Warning~.I can try to again in the crunchbang Linux .In the pecl official website, tell as how to install pecl.but , I can't success ....Then ,i find the module in the debian . This package is ture.sudo apt-get install libapache2-mod-perl2Now , P 阅读全文
posted @ 2013-04-04 17:59 墨迹哥's 阅读(280) 评论(0) 推荐(0)
摘要:今天一直在摸索这个东西,弄了下有关SESSION的。目前登录验证模块解决了。下面就是要入库。问题来了,无法将mysql查询封装成函数,一瞬间鸭梨山大。虽然查询没有问题,但是我很想封装成函数,因为这样能够减少重复代码,一直以来我都觉得重复代码是一件无比二笔的事情,然而PHP的函数封装,真的很无奈,估计没学好,到现在还在摸索中。把今天遇到的问题做个记录,以后遇到就明白了。<?phpinclude "../inc/session.php";include "../inc/config.php";//$boc=select("select * f 阅读全文
posted @ 2013-04-02 15:32 墨迹哥's 阅读(180) 评论(0) 推荐(0)
摘要:这个页面是我用来做PHP测试用的....<!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="tex 阅读全文
posted @ 2013-04-02 14:04 墨迹哥's 阅读(152) 评论(0) 推荐(0)
摘要:看了下W3C的教程。。Session有关的东西先保存下。然后分析下。。<?php//启动会话session_start();//存储session$_SESSION['admin']=1;?><html><body><?php//判断是否存在session//if($_SESSION['admin']!=1){// echo "no session\n";//}else{// echo "have session\n";//}?><?php//关闭sessionsess 阅读全文
posted @ 2013-04-01 16:42 墨迹哥's 阅读(211) 评论(0) 推荐(0)
摘要:isset() 这个函数用于判断值是否为空。返回的是true 和 false.XSS过滤这里需要自己进行处理,在网上搜了一下代码。具体好不好用还不清楚。感觉有点复杂,不过还是稳步向前比较好,在入口上需要费点功夫。。把正在研究的发出来把。。。欢迎指教,当然,也希望有人能够回复下。提点下,谢谢!登录表单如下:<html> <head> <title>Report Login</title> </head> <body> <form method="post" action="inc/chec 阅读全文
posted @ 2013-04-01 14:45 墨迹哥's 阅读(397) 评论(0) 推荐(0)