随笔分类 - 系统架构
系统架构 
    
摘要:save the following content in clearsvn.bat and save it in root dir.@echo oncolor 2fmode con: cols=80 lines=25@REM@echo Deleting all .svn, please wait......@rem Delete .svn in current and sub directories@rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn"@for /r . %%a
        阅读全文
            
摘要:aitupu-v1.3.0php\application\configucenter.php<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');$config = array ( 'is_active' => 0, 'uc_host' => 'localhost', 'uc_dbuser' => 'root', 'uc_dbpw' => 
        阅读全文
            
摘要:http://codeigniter.org.cn/forums/thread-13690-1-1.htmlhttp://www.duobianxing.com/docs/doc-config/http://blog.189pt.com/tag/codeigniter/http://www.ecshop.com/download.phphttp://www.phpcms.cn/html/download/http://www.comsenz.com/downloads/install/discuzx
        阅读全文
            
摘要:打造简单、易用、易于扩展的PHP轻量级框架http://www.doitphp.com/documentation/index.htmlDoitPHP 1.5 手册 目录1.0 第一章:基础知识1.1 DoitPHP的简介1.2 DoitPHP的安装1.3 DoitPHP Tools使用说明1.4 DoitPHP的使用规范1.5 DoitPHP的常量说明1.6 DoitPHP自定义设置1.7 DoitPHP的运行原理1.8 DoitPHP的URL路由详解2.0 第二章:核心类2.1 DoitPHP的Controller应用2.2 DoitPHP的Model应用2.3 DoitPHP的View应
        阅读全文
            
摘要:http://jsonrpc2.codeplex.com/homesource codedownloadsdocumentationdiscussionsissue trackerpeoplelicenseAre you Sure? X By clicking Delete, all history, comments and attachments for this page will be deleted and cannot be restored.Page InfoChange History (all pages) Follow (37)All Project UpdatesDisc
        阅读全文
            
摘要:http://justcoding.iteye.com/blog/546880CodeIgniter 的数据安全过滤全解析博客分类:Codeigniter / CakePHPMySQLSQLPHP由于对CI的SQL安全这些不放心,今天寡人啃了一下午的代码,算是对其机制比较了解了,为了让各位兄弟姐妹少走弯路,特将战果公布,希望大家喜欢。 1.无论如何在获取参数之时都建设将 xss过滤打开,比如 $this->input->get('username',true); 其中的true就代表打开了 xss 2.不要直接使用$_GET等类似方式获得数据,如果这样获取数据的话将
        阅读全文
            
摘要:<?phpabstract class UMA_Plugin_Mongo{ protected $name = null; private $_db; //单例模式private static $_dbinstance; public static function getDbInstance() { if(self::$_dbinstance == null) { $_dbinstance = new iDatabase(IDATABASE_PROJECT_ID, IDATABASE_PASSWORD); } return $_dbinstance; } public function
        阅读全文
            
摘要:Postman - REST Client或者Dev HTTP Client
        阅读全文
            
摘要:CodeIgniter中设计一个全局exception hook博客分类:PHPPHP在CodeIgniter中,当发生异常时,经常要通知系统管理员,因此有必要在全局的高度上 捕捉异常,因此可以写一个hook, 比如在config目录的hook.php中,加入: $hook['pre_controller'][] = array( 'class' => 'ExceptionHook', 'function' => 'SetExceptionHandler', 'filename' =&g
        阅读全文
            
摘要:SQL to Aggregation Framework Mapping Chart¶The aggregation framework allows MongoDB to provide native aggregation capabilities that corresponds to many common data aggregation operations in SQL. If you’re new to MongoDB you might want to consider the Frequently Asked Questions section for a sel
        阅读全文
            
摘要:SQL to MongoDB Mapping Chart¶In addition to the charts that follow, you might want to consider theFrequently Asked Questions section for a selection of common questions about MongoDB.Executables¶The following table presents the MySQL/Oracle executables and the corresponding MongoDB executa
        阅读全文
            
摘要:分享jQuery瀑布流的插件和案例、几款jquery瀑布流插件、jquery瀑布流下载2012-11-06 分类:Jquery、技术分享 244 views“瀑布流布局”随着pinterest网的流行而出名,现在国内使用这种风格布局的网站也越来越多,比如说Mark之,蘑菇街,点点网,哇哦等等。今天,主要向大家介绍一些相关的制作插件,以及成功的案例,希望能给大家今后的工作有所帮助。制作瀑布流布局的优秀插件首先简单的向大家推荐几款制作瀑布流的jQuery插件,这些插件能帮助大家轻松的实现类似于pinterest的布局效果:1.MasonryMasonry是一个动态的网格布局插件。每个元素水平方向都
        阅读全文
            
摘要:PHP JQUERY JSON 实现瀑布流jquert.html 页面<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"
        阅读全文
            
摘要:php常用函数总结PHP String 函数 PHP:指示支持该函数的最早的 PHP 版本。 函数 描述 PHP addcslashes() 在指定的字符前添加反斜杠。 4 addslashes() 在指定的预定义字符前添加反斜杠。 3 bin2hex() 把 ASCII 字符的字符串转换为十六进制值。 3 chop() rtrim() 的别名。 3 chr() 从指定的 ASCII 值返回字符。 3 chunk_split() 把字符串分割为一连串更小的部分。 3 convert_cyr_string() 把字符由一种 Cyrillic 字符转换成另一种。 3 convert_uudecod
        阅读全文
            
摘要:php如何比较两个数组是否相等???有两个数组$a = array('aaa','bbb','ddd','aaa');$b = array('aaa','ddd','aaa','bbb');如何比较这两个数组是否相等,前提是不能使用sort()之类的内置函数进行排序。如果一定要使用内置函数,哪一个排序函数速度最快???++++++++++++++++++++++++++++++++++++++++++++++ $a = array('aaa','
        阅读全文
            
摘要:PHP 为你提供一个叫__toString() 的函数,你可以用它来返回表示对象的字符串信息,而且一旦定义它,打印命令将调用它并打印出返回的字符串。View Code <?phpclass Person{ private $name; function __construct($name) { $this->name = $name; } function __toString() { return $this->name; }}$obj = new Person("小明");print $obj;?>输出结...
        阅读全文
            
摘要:class Foo{ private function priFunc(){} protected function proFunc(){} public function pubFunc(){}} function get_class_all_methods($class){ $r = new ReflectionClass($class);//反射类 foreach($r->getMethods() as $key=>$methodObj){ if($methodObj->isPrivate()) $methods[$key...
        阅读全文
            
摘要:php魔术方法get和set举例Posted by 深 呼吸 日期: 2012/10/15 (0)查看评论一般来说,总是把类的属性定义为private,这更符合现实的逻辑。但是,对属性的读取和赋值操作是非常频繁的,因此在PHP5中,预定义了两个函数魔术方法:“__get()”和“__set()”。 ?[Copy to clipboard]View Code PHP12345678910111213141516171819202122232425262728293031<?phpclass Person {	//下面是人的成员属性, 都是封装的私有成员	private $name; //人
        阅读全文
            
摘要:PHP正确匹配图片路径123456789<?php //取得页面所有的图片地址 function getimages($str) { $match_str = "/((http://)+([^ rn()^$!`"'|[]{}<>]*)((.gif)|(.jpg)|(.bmp)|(.png)|(.GIF)|(.JPG)|(.PNG)|(.BMP)))/"; preg_match_all ($match_str,$str,$out,PREG_PATTERN_ORDER); return $out; } ?>我使用kindeditor保存
        阅读全文
            
 
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号