`
曾越明
  • 浏览: 11448 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
一,改版phalcon版本 1,下载phalcon版本控制到/home/apache/www/phalcon 下 $ svn co https://github.com/phalcon/cphalcon/tags/v1.2.3/ext /home/apache/www/phalcon 2,安装phalcon版本 $ cd /home/apache/www/phalcon $ sudo ./install 3,安装完之后, $ sudo make test; 二,配置apache2 多站点泛解析 1,到apache2配置文件目录下 $ cd /etc/apache2 $ sudo ...
1、配置tenginux文档 :http://www.cnblogs.com/littlehb/archive/2013/04/02/2994686.html  (注意iptable防火墙)       LAMP : http://hjh524.blog.51cto.com/4248253/1551721      3、php-fpm以root用户组启动: sudo service php-fpm stop sudo nohup /usr/sbin/php-fpm -R >/dev/null 2>&1 & sudo service php-fpm s ...
下载组件phpimageeditor; $ vim phpimageeditor/lite/shared/classes/phpimageeditor.php 覆盖     <?php class PHPImageEditor {     var $srcEdit = "";     var $name = "";     var $srcOriginal = "";     var $srcPng = "";     var $srcWorkWith = "";     var $ ...
http://www.yiiframework.com/doc/guide/1.1/zh_cn/basics.application
function authcode_config($string, $operation = 'DECODE', $expiry = 0) { global $config; $ckey_length = 4; $key = md5($config['authkey']); $keya = md5(substr($key, 0, 16)); $keyb = md5(substr($key, 16, 16)); $keyc = $ckey_length ? ($operation == 'DECODE' ? substr($string, 0, $ckey_length): subst ...
// .checkzeny是checkbox标签类 selectAll = function () {      var inputs = $(".checkzeny");      for(var i = 0; i < inputs.length; i++) {                 if(inputs[i].type === "checkbox") {              inputs[i].checked = !inputs[i].checked;         }      } };
//php 对象到数组转换     private function objToArr($obj){         if(!is_object($obj) && !is_array($obj)) {             return $obj;         }         $arr = array();         foreach($obj as $k => $v){             $arr[$k] = $this->objToArr($v);         }         return $arr;     }         // ...

数组递归方法

    博客分类:
  • php
$items = array(     1 => array('id' => 1, 'pid' => 0, 'name' => '江西省'),     2 => array('id' => 2, 'pid' => 0, 'name' => '黑龙江省'),     3 => array('id' => 3, 'pid' => 1, 'name' => '南昌市'),     4 => array('id' => 4, 'pid' => 2, 'name' => '哈尔滨市'),     5 => ...
qq配置文件 路径:application/config/isetting/qq_setting.php    <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');     /**      * @qq互联配置信息      * 默认开启get_user_info模块      * **/     $config['inc_info'] = array(         array (                 'appid' => '101091040',           ...
get1,忘记数据库密码解决方案:http://help.aliyun.com/view/13438655.html 2,centos mysql install: url http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html; 3, tar -czvf longshuai.tar.gz ./longshuai <==打包后,用gzip压缩! 4, tar -xzvf  longshuai.tar.gz ./  <==解压; 5,查看crontab log 日志:tail /var/ww ...
一 1, apache 配置文件  $ cd /etc/httpd/conf/  vim httpd.conf    Include conf.d/*.conf  ->  解析php代码 2,软连接路径httpd.conf  DocumentRoot "/var/www/html" (默认路径) <Directory "/var/www/html/"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Diretor ...
安装Ubuntu下的php配置: 1. LAMP 的安装 在终端下执行     $ sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql 2.配置apache环境    2.1 .在/home/下创建 apache/etc/  apache/www 两个路径     $ cd /home/         $ mkdir apache         $ cd /apache             mkdir etc             mkdir www    2.2 .同时 ...
Global site tag (gtag.js) - Google Analytics