08 2012 档案

摘要:<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');set_time_limit(0);class Img_build extends CI_Controller{ private static $img_path = 'upload_old/'; private static $new_path = 'upload/'; function __construct() { parent::__construct(); ... 阅读全文
posted @ 2012-08-30 10:35 WhoAmMe 阅读(1659) 评论(0) 推荐(1)
摘要:$name = 'yangheping';$pwd = 'yhpadmin';$phone = '158********';$content = '测试POST\GET发送方式';//组合提交URL以及参数 (GET方式)//$http = 'http://www.ceshi.cc/php/post.php'.'?name='.$name.'&pwd='.$pwd.'&dest='.$phone.'&content='.$con 阅读全文
posted @ 2012-08-29 15:43 WhoAmMe 阅读(633) 评论(0) 推荐(0)
摘要:<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');class MyEmail extends CI_Controller { public function __construct() { parent::__construct(); } public function index( $param=array() ) { $config = array( ... 阅读全文
posted @ 2012-08-27 09:44 WhoAmMe 阅读(252) 评论(0) 推荐(0)
摘要:$str = "客户您好,为您推荐以下项目:(crm{项目2:项目名称} (crm{项目3:项目名称}crm) crm)以及(crm{项目1:项目名称}crm)"; $start = '(crm'; //循环开始标记 $end = 'crm)'; //循环结束标记 //循环标记,需要转移的符号,前面需要加入转义符 '\' $need_escape = array('^', '$', '(', ')', '.', '[', ' 阅读全文
posted @ 2012-08-23 11:31 WhoAmMe 阅读(343) 评论(0) 推荐(0)