摘要:
//二维数组,按其中某个键值排序/** @param array $array the array to sort.* @param string $key_name the first item to sort by.* @param string $sort_order the order to sort by("SORT_ASC"|"SORT_DESC")* @param string $sort_type the sort type("SORT_REGULAR"|"SORT_NUMERIC"|"S 阅读全文
摘要:
/**ci的session有很多问题,包括关闭浏览器不能失效,这是因为ci的session用cookie来保存的问题,除此之外就是unset_userdata函数有问题,我们可以重写sessio类,在application/library/文件夹下建立Session.php文件,写入如下code*/<?php if (!defined('BASEPATH')) exit('No direct script access allowed');//> makes dw cs4 happy/*** Session class using native PH 阅读全文
摘要:
<?class Smtp extends CI_Controller { /* Public Variables */ var $smtp_port; var $time_out; var $host_name; var $log_file; var $relay_host; var $debug; var $auth; var $user; var $pass; /* Private Variables */ var $sock; // function __construct() {// parent::__construct();// } /* Constractor */ fun 阅读全文