2016年1月26日

摘要: To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.soTh... 阅读全文
posted @ 2016-01-26 13:57 darkness_1 阅读(159) 评论(0) 推荐(0) 编辑

2016年1月15日

摘要: 登录 阅读全文
posted @ 2016-01-15 17:50 darkness_1 阅读(982) 评论(0) 推荐(0) 编辑

2016年1月14日

摘要: 在unix/linux下,经常有因为共享内存、信号量,队列等共享信息没有干净地清楚而引起一些问题。查看共享信息的内存的命令是ipcs [-m|-s|-q]。默认会列出共享内存、信号量,队列信息,-m列出共享内存,-s列出共享信号量,-q列出共享队列清除命令是ipcrm [-m|-s|-q] id。-... 阅读全文
posted @ 2016-01-14 18:03 darkness_1 阅读(257) 评论(0) 推荐(0) 编辑

2015年12月4日

摘要: self refers to the same class whose method the new operation takes place in.static in PHP 5.3's late static bindings refers to whatever class in the h... 阅读全文
posted @ 2015-12-04 16:45 darkness_1 阅读(137) 评论(0) 推荐(0) 编辑

2015年12月2日

摘要: '/(.*省)*(.+?市)+?(.+?市|.*县)*(.*区)*/' #匹配地名'/(.*省)*([^市]+市)+?([^市]+市|.*县)*(.*区)*/u' #匹配地名 阅读全文
posted @ 2015-12-02 20:24 darkness_1 阅读(275) 评论(0) 推荐(0) 编辑

2015年9月17日

摘要: open("gifresizer.zip")===TRUE){ //zip file name print_r($z); for($i=0;$inumFiles;$i++){ $entry_info = $z->statIndex($i); prin... 阅读全文
posted @ 2015-09-17 18:11 darkness_1 阅读(397) 评论(0) 推荐(0) 编辑

2015年8月26日

摘要: /*****************module.config.php******************/'service_manager' => array( 'aliases' => array( 'translator' => 'MvcTranslator... 阅读全文
posted @ 2015-08-26 19:31 darkness_1 阅读(261) 评论(0) 推荐(0) 编辑

2015年8月19日

摘要: 1.php执行web服务器环境下执行系统命令若未使用绝对路径需考虑web服务器用户是否具有相应的PATH权限,若无可考虑将命令拷贝或映射到/usr/bin目录 阅读全文
posted @ 2015-08-19 10:22 darkness_1 阅读(99) 评论(0) 推荐(0) 编辑

2015年8月5日

摘要: 1.首先扩展Zend\Captcha\Image,重写一下图片生成过程:img = imagecreatetruecolor($this->width, $this->height); $color = imagecolorallocate($this->img, mt_ran... 阅读全文
posted @ 2015-08-05 18:21 darkness_1 阅读(219) 评论(0) 推荐(0) 编辑

2015年7月24日

摘要: img{ height: 150px; width: auto; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAfCAIAAACQzIFuAAAACXBI... 阅读全文
posted @ 2015-07-24 11:46 darkness_1 阅读(353) 评论(0) 推荐(0) 编辑

导航