摘要: <?//设置PHPExcel类库的include pathset_include_path('.'. PATH_SEPARATOR . 'D:\Zeal\PHP_LIBS' . PATH_SEPARATOR . get_include_path());/** * 以下是使用示例,对于以 //// 开头的行是不同的可选方式,请根据实际需要 * 打开对应行的注释。 * 如果使用 Excel5 ,输出的内容应该是GBK编码。 */require_once 'PHPExcel.php';// uncomment////require_on... 阅读全文
posted @ 2013-04-16 17:26 幻星宇 阅读(176) 评论(0) 推荐(0) 编辑
摘要: package com.listener;import javax.servlet.http.HttpSessionEvent;import javax.servlet.http.HttpSessionListener;/** * 对session的监听 */public class HttpSessionListenerDemo implements HttpSessionListener { public void sessionCreated(HttpSessionEvent event) { // 创建session时触发 System.out.println("** SES 阅读全文
posted @ 2013-04-16 11:07 幻星宇 阅读(201) 评论(0) 推荐(0) 编辑
摘要: package com.listener;import javax.servlet.ServletContextAttributeEvent;import javax.servlet.ServletContextAttributeListener;/** * 上下文属性监听 */public class ServletContextAttributeListenerDemo implements ServletContextAttributeListener { public void attributeAdded(ServletContextAttributeEvent event) { . 阅读全文
posted @ 2013-04-16 11:01 幻星宇 阅读(161) 评论(0) 推荐(0) 编辑
摘要: package com.listener;import javax.servlet.ServletContextEvent;import javax.servlet.ServletContextListener;/** * 上下文监听 * */public class ServletContextListenerDemo implements ServletContextListener { public void contextDestroyed(ServletContextEvent event) { //上下文销毁时出发 System.out.println("** 容器销毁- 阅读全文
posted @ 2013-04-16 11:00 幻星宇 阅读(134) 评论(0) 推荐(0) 编辑
摘要: $content = '订购日志明细:'.$begin_date.'至'.$end_date; if ($detail_list) { foreach ($detail_list as $detail) { $content .= '手机号:'.$detail['MSISDN']; $content .= ' 归属地:全国'; $content .= ' 歌曲名称:'.$detail['CONTENT_NAME']; $content .= ' 业务ID:'.$det 阅读全文
posted @ 2013-04-16 10:48 幻星宇 阅读(219) 评论(0) 推荐(0) 编辑