![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
文章平均质量分 80
cooledit2730
这个作者很懒,什么都没留下…
展开
-
MYSQL分表优化
我们的项目中有好多不等于的情况。今天写这篇文章简单的分析一下怎么个优化法。这里的分表逻辑是根据t_group表的user_name组的个数来分的。因为这种情况单独user_name字段上的索引就属于烂索引。起不了啥名明显的效果。1、试验PROCEDURE.DELIMITER $$DROP PROCEDURE `t_girl`.`sp_转载 2009-09-27 10:53:00 · 347 阅读 · 0 评论 -
php soap
原文转自 :http://home.phpchina.com/space.php?uid=49655&do=blog&id=182488一. 必备知识1.wsdl(web服务标记语言) WSDL(网络服务描述语言,Web Services Description Language)是一门基于 XML 的语言,用于描述 Web Services 以及如何对它们进行访问转载 2010-05-22 12:31:00 · 2991 阅读 · 0 评论 -
Smarty使用自定义资源
<?php// put these function somewhere in your applicationfunction db_get_template ($tpl_name, &$tpl_source, &$smarty_obj){ // do database call here to fetch your template, // populating原创 2010-04-20 13:49:00 · 608 阅读 · 0 评论 -
PHP IP函数
<?php $start = ip2long(192.168.1.1);$start = sprintf("%u", $start) ;$end = ip2long(192.168.1.50);$end = sprintf("%u", $end) ;for ($start; $start<$end; $start++){ echo long2ip($start原创 2010-04-20 13:51:00 · 516 阅读 · 0 评论 -
CURL函数
1、使用CURL模拟POST表单提交Source.php代码 //创建curl句柄 $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,"http://localhost/curl/target.php"); curl_setopt($ch,CURLOPT_POST,tr转载 2010-04-15 12:46:00 · 1246 阅读 · 1 评论 -
简单的文件上传类
<?php/*** FileUplaod class* 部分代码源自网络* 2010-3-23*/class FileUpload { // 验证上传文件是否为规定大小 private static function size($_formName = UploadFile, $size = 10M) { $file原创 2010-03-24 15:32:00 · 1003 阅读 · 2 评论 -
简单的图片处理类
<?php /*** Image Class* Driver: GD Library* 暂时未处理当缩略图比原图片小时 无法添加水印的情况。*/class Image { public $_sourceImg ; // 源图片 public $_tmpImg; // 操作图片 public $_imgType ; // 图原创 2010-03-24 15:34:00 · 615 阅读 · 0 评论 -
php SMTP发送邮件
//smtp.class.phpset_time_limit(120);class smtp{/* Public Variables */var $smtp_port;var $time_out;var $host_name;var $log_file;var $relay_host;var $debug;var转载 2009-12-10 10:26:00 · 2053 阅读 · 1 评论 -
POST
function sendPost($postUrl, $data){ $URL = $postUrl; $post_data = $data; $referrer=""; // parsing the given URL $URL_Info=parse_url($URL); // Building referrer if($r原创 2009-12-05 13:12:00 · 404 阅读 · 0 评论 -
模板替换IMG正则
//替换成 src="http://images.site.com/..." //$src = "//$src = "$src = "function parse($path = ) { if(preg_match("#http://#i",$path)){ return str_replace("http://www.site.com","http:原创 2010-05-22 22:48:00 · 584 阅读 · 0 评论