- 博客(4)
- 问答 (3)
- 收藏
- 关注
原创 CI框架下利用discuz的IP库将ip转换为省市地址!
CI的model class Baseip extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('function_lib'); } function demo(){ $ip = '58.244.191.119'; $city = $
2016-06-29 12:11:35 661
原创 php正则匹配动态页面文章标题<h1>
header("Content-type:text/html;charset=utf-8"); $file = file_get_contents('http://www.manew.com/6176.html'); preg_match_all('/(.*)/si',$file,$content); print_r($content); ?>
2016-06-23 19:11:37 1413
原创 mac系统下外部访问有关读写配置(本实例为图片上传) chmod
function do_add_gift(){ header("Content-Type: text/html; charset=UTF-8"); $data = $this->input->post(); // $id = $data['id']; $date = date('Ymd'); $datd = date('YmdHis'); $config
2016-06-17 18:24:38 380
转载 数据库的字段不够用的时候,可以将数据存为json格式
[php] view plain copy print? function enjson() { $json_data = array( 'tuig' => '1个月(300元)', 'fukuan' => '支付宝' ); echo json_encode($json
2016-06-14 15:30:45 2520
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人