02 2014 档案

摘要:XCODE4升级到XCODE5编译就不通过了错误如下:ld: warning: directory not found for option '-L/Users/paul/Android/baidu_tongji_source/ios-sdk/BaiduMobStatSample/../BaiduMobStat/DerivedData/BaiduMobStat/Build/Products/Debug-iphoneos'ld: warning: ignoring file /Users/paul/Library/Developer/Xcode/DerivedData/Baidu 阅读全文
posted @ 2014-02-19 16:58 张大千 阅读(2374) 评论(0) 推荐(0) 编辑
摘要:获取数组的最后一个元素有很多方法,推荐使用php自带函数end()end函数用法举例(来自w3c)";echo end($people); ?>输出结果:PeterCleveland 阅读全文
posted @ 2014-02-10 16:10 张大千 阅读(7372) 评论(0) 推荐(0) 编辑
摘要:最近有用户反映辛辛苦苦写了几个小时的文章一点击提交,却被告知需要重新登录,这确实是一件很郁闷的事。我想这大概是session过期了吧。于是用了js定时器来解决这个问题。js代码如下:setInterval( function(){jQuery.get("/plugin.php?id=xxxxxx:refresh",function(data,status){});} , 2000);其实这里完全没有必要两秒秒钟执行一次,十五分钟就可以。为了防止浏览器缓存,可以在路径后面加上一个随机参数。然后执行的php页面中的代码如下: 阅读全文
posted @ 2014-02-08 21:31 张大千 阅读(405) 评论(0) 推荐(0) 编辑
摘要:我今天无意中看了一下ThinkPHP的源码,发现很多东西都看不懂了。需要充电啊,有没有谁愿意看一遍ThinkPHP的源码? 阅读全文
posted @ 2014-02-04 20:12 张大千 阅读(132) 评论(0) 推荐(0) 编辑
摘要:程序执行到application类中的init()方法。在该方法中根据mca参数值加载了PC_PATH/modules/content/index.php文件,并对该文件中的index类进行初始化,然后访问了该类中的init()方法。PC_PATH/modules/content/index.phpdefined('IN_PHPCMS') or exit('No permission resources.');//防止恶意调用//模型缓存路径define('CACHE_MODEL_PATH',CACHE_PATH.'caches_mode 阅读全文
posted @ 2014-02-04 08:09 张大千 阅读(520) 评论(0) 推荐(0) 编辑
摘要:/** * 调用件事 */private function init() { $controller = $this->load_controller(); if (method_exists($controller, ROUTE_A)) { if (preg_match('/^[_]/i', ROUTE_A)) { exit('You are visiting the action is to protect the private action'); } else { call_user_func(arra... 阅读全文
posted @ 2014-02-04 08:08 张大千 阅读(308) 评论(0) 推荐(0) 编辑
摘要:(不完全测试)-1:草稿0:普通帖子1:本版置顶2:分类置顶3:全局置顶 阅读全文
posted @ 2014-02-03 21:52 张大千 阅读(649) 评论(0) 推荐(0) 编辑