摘要: # php组2015年第一季度计划任务------这是第一次以团队为单位来写计划任务。2015年已经过去了20天,[h5](http://m.iautos.cn/) [车型库](http://backend.foundation.iautos.cn) 两个项目慢慢进入了尾声,其余的项目也在维护中不断... 阅读全文
posted @ 2015-01-24 22:11 yyinsomnia 阅读(162) 评论(0) 推荐(0)
摘要: $file = 'D:\xampp\index.tpl.php';$ex = get_extension5($file);echo $ex;function get_extension1($file){ return substr(strrchr($file, '.'), 1);}function get_extension2($file){ return substr($file, strrpos($file, '.')+1);}function get_extension3($file){ $array = explode('. 阅读全文
posted @ 2012-02-06 16:22 yyinsomnia 阅读(188) 评论(0) 推荐(0)
摘要: 通过一下代码,总结php文件函数// current directoryecho getcwd() . "\n";chdir('hhh');// current directoryecho getcwd() . "\n";D:\xampp\htdocs\my\function D:\xampp\htdocs\my\function\hhh$dir = 'D:\xampp\htdocs\my\function';// Open a known directory, read directory into variable a 阅读全文
posted @ 2012-02-03 16:31 yyinsomnia 阅读(158) 评论(0) 推荐(0)
摘要: 根目录下index.php define('ENVIRONMENT', 'development');/* *--------------------------------------------------------------- * ERROR REPORTING *--------------------------------------------------------------- * * Different environments will require different levels of error reporting. * By 阅读全文
posted @ 2011-12-12 16:48 yyinsomnia 阅读(794) 评论(0) 推荐(0)
摘要: 今天研究phpcms源码看到这么一句:include template('content','index',$style);有点恍惚:啥时候能include 一个函数了...跳到template()函数一看才明白,函数返回的是文件路径+名称小小做个提示o(∩_∩)o 阅读全文
posted @ 2011-10-31 17:15 yyinsomnia 阅读(84) 评论(0) 推荐(0)
摘要: 方法保存购物车信息:修改init.php找到define('SESS_ID', $sess->get_session_id());修改为if(@$_SESSION['user_id']>0){ //@加入就可以不提示警告错误 define('SESS_ID', md5($_SESSION['user_id']));}else{ define('SESS_ID', $sess->get_session_id());}返回上一页:<a href="javascript:history. 阅读全文
posted @ 2011-09-13 16:14 yyinsomnia 阅读(355) 评论(0) 推荐(0)
摘要: 安安心心在这里写了~第一篇... 阅读全文
posted @ 2011-09-08 21:46 yyinsomnia 阅读(75) 评论(0) 推荐(0)