• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






高学平的技术博客

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 下一页

2011年8月18日

php curl 导出163邮箱联系人列表
摘要: <?php/** **/ class Http163{ /** * @desc: login in the 163 mail box * @param string $username * @param string $password * @return int //the login status */ public function login($username, $password) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://reg.163.com/logins.jsp"); cur 阅读全文
posted @ 2011-08-18 15:42 高学平 阅读(571) 评论(1) 推荐(0)
 
php curl 获取msn好友列表
摘要: <?php//error_reporting(7);class Msn{ private $startcomm = 0; private $username = ''; private $password = ''; private $commend = ''; private $domain = ''; private $socket = ''; private $challenge = ''; private $status = array(); private $data = array 阅读全文
posted @ 2011-08-18 15:38 高学平 阅读(370) 评论(0) 推荐(0)
 

2011年7月28日

功能完善的php上传类
摘要: php upload class<?php/** * This class allows a user to upload and * validate their files. * * @author John Ciacia <Sidewinder@extreme-hq.com> * @version 1.0 * @copyright Copyright (c) 2007, John Ciacia * @license http://opensource.org/licenses/gpl-license.php GNU Public License */class Uplo 阅读全文
posted @ 2011-07-28 11:15 高学平 阅读(342) 评论(0) 推荐(0)
 

2011年7月27日

php上传图片类
摘要: php上传图片类<?phpclass ieb_upload{ var $FormName; //文件域名称 var $Directroy; //上传至目录 var $MaxSize; //最大上传大小 var $CanUpload; //是否可以上传 var $doUpFile; //上传的文件名 var $sm_File; //缩略图名称 var $Error; //错误参数 function ieb_upload($formName = '', $dirPath = '', $maxSize = 2097152) // (1024*2)*1024=20 阅读全文
posted @ 2011-07-27 18:55 高学平 阅读(3095) 评论(0) 推荐(0)
 
php上传文件简单类
摘要: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><?php //上传文件类型列表 $uptypes=array( 'image/jpg', 'image/jpeg', 'image/png', 'image/pjpeg', 'image/gif', 'image/bmp', 'image/x-png' );$max_file_size=200 阅读全文
posted @ 2011-07-27 17:40 高学平 阅读(397) 评论(0) 推荐(0)
 

2011年7月18日

php+javascript实现三级联动(二)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title><script 阅读全文
posted @ 2011-07-18 18:50 高学平 阅读(448) 评论(1) 推荐(0)
 

2011年7月15日

codeigniter配置smarty模板
摘要: codeigniter是一个比较不错的轻量级的php开发web frame,我将ci结合smarty模板解释器使用,现在ci配置smarty的方法给出:①下载smarty的源码包并且解压②将smarty源码包中的libs核心类库重命名为Smarty并且经文件夹copy到ci的项目目录下的libraries下,同时在libraries文件夹下建立Cismarty.php文件。③在Cismarty.php文件中写入如下的code<?phpif(!defined('BASEPATH'))exit('no dir');require_once (APPPATH.& 阅读全文
posted @ 2011-07-15 23:39 高学平 阅读(2375) 评论(0) 推荐(0)
 

2011年7月14日

php+javascript实现三级联动
摘要: 实现三级联动,我是采用了地区数据源存储在mysql数据库中,这样方便后台配置数据,然后将数据从数据库中读出来,将数据保存为json格式写入一个js文件,通过js代码处理json格式的数据并且显示在联动框中。先给出数据库架构和测试数据以及php文件和json格式文件,js处理json数据文件过几天给出,最近有点忙。php文件class Start extends CI_Controller{ function __construct() { parent::__construct(); $this->load->database(); }function cas() { $res = 阅读全文
posted @ 2011-07-14 23:30 高学平 阅读(956) 评论(0) 推荐(0)
 

2011年7月6日

codeigniter的url重写问题(去掉index.php路由)
摘要: 在codeigniter的路径配置中,默认使用index.php路由,在美化url进行seo时候最好去掉这个index.php,也就是进行url重写。在这里给出正确的方法:①首先开启apache的配置文件httpd.conf文件rewrite重写模块,也就是rewrite_module模块,还有要将AllowOverride配置成ALL②配置好了apache,现在就要配置.htaccess文件,如果你的文件是在根目录这样配置:<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewr 阅读全文
posted @ 2011-07-06 16:31 高学平 阅读(1533) 评论(2) 推荐(0)
 

2011年7月1日

关于codeigniter的xmlrpc的类在进行数据交换时的类型问题
摘要: 在使用codeigniter的xmlrpc类进行客户端/服务端请求应答的时候,客户端需要发送请求参数给服务端,服务端在接受到参数之后进行参数分析,分拆参数之后分配给正确的方法进行处理,处理之后反馈一个response给客户端。客户端发送的请求类似这样$request = array('parameters00','parameters01');在客户端的请求你可以制定参数的数据类型,你可以将每个参数单独的放进一个数组,在数组的第二个位置制定参数的数据类型,类似这样$request = array( array('parameters00', 阅读全文
posted @ 2011-07-01 09:57 高学平 阅读(279) 评论(0) 推荐(0)
 
上一页 1 2 3 下一页