| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 | <?php/*function a($name) {	echo 'i am a';	var_dump($name);		return true;}function b($name) {	echo 'i am b';	var_dump($name);	include_once 'GXG.php';}spl_autoload_register('b');spl_autoload_register('a');//print_r(spl_autoload_functions());new GXG();echo 'azzz';*/define('KIF_PATH', '/export/manager/KIF');require_once KIF_PATH . '/init.php';use KIF\Core\Request;use KIF\Dao\AbstractDao;function test ($memc, $key, & $val) {	var_dump('i am test');	$val = microtime(true);	return true;}use KIF\Cache\Memcached;use KIF\Core\Config;Config::load(dirname(dirname(__FILE__)) . DS . 'config/config.inc.php');$objMemcached = new Memcached();//$tmpResult = $objMemcached->set('ttkey', 'takbkbk', 60*5);$tmpResult = $objMemcached->get('ttzu', 'test', $cas_token);//$tmpResult = $objMemcached->get(123333);//$tmpResult = $objMemcached->delete(123333);var_dump($tmpResult);var_dump($cas_token);echo "<br /><br />";echo Request::rootDomain('backend.localhost.com.cn');echo "<br /><br />";use KIF\Db\MySQLi;class ProductIndex extends AbstractDao {	protected $tableName = 'product_index';		protected $primaryKey = 'productid';		}$objProductIndex = new ProductIndex();$result = $objProductIndex->gets(array(291110,  '291109', '2911107'));//$objProductIndex->update(array('ename' => ''), array('productid' => 291109));print_r($result);/*$dsn = 'mysqli://root:@kimiss@10.15.200.181/product?charset=utf8&name=gxg';$objMysqli = new MySQLi($dsn);$sql = "select * from product_index limit 1;";$arr = $objMysqli->fetchOne($sql);print_r($arr);$sql = "select * from product_review_index limit 1;";$arr = $objMysqli->fetchOne($sql);print_r($arr);*/use KIF\Debug\Debug;/*# 邮箱服务器与帐号定义define("SMTP_HOSTNAME", "smtp.qq.com");//define("SMTP_SERVER", "27.131.221.229");define("SMTP_PORT", 25);define("SMTP_USERNAME", "husserl");define("SMTP_FROM", "husserl@qq.com");define("SMTP_FROMNAME", "高街时尚网");define("SMTP_PASSWORD", "lulu851031");define("SMTP_CHARSET", "UTF8");define("SMTP_TIMEOUT", 20);Debug::time('send mail start');use KIF\Mail\Mail;$objMail = new Mail();$result = $objMail->send(array(	'address'	=> 'husserl@qq.com',	'subject'	=> '你好,测试邮件啊哈哈',));Debug::time('send mail end');Debug::log('mail send result', $result);*/
 |