会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
php开发
2012年1月19日
php 数组之删除空数组程序
摘要: <?php $str1_array=array('一聚教程网','','http://www.111cn.net','','1654',''); $str1_array=array_filter($str1_array); print_r($str1_array); ?>结果Array ( [0] => 一聚教程网 [2] => http://www.111cn.net [4] => 1654 )实例$fangId = PostGet('houseId'
阅读全文
posted @ 2012-01-19 18:56 php开发
阅读(345)
评论(0)
推荐(0)
编辑
php自动保存文章内容中的图片
摘要: <?php /* author: ssh_kobe date: 20110602 shortage: 如果网页中的图片路径不是绝对路径,就无法抓取 */ set_time_limit(0);//抓取不受时间限制$URL='http://www.hzhuti.com/';//任意网址get_pic($URL);function get_pic($pic_url) { //获取图片二进制流 $data=CurlGet($pic_url); /*利用正则表达式得到图片链接*/ $pattern_src = '/<[img|IMG].*?src=['|&qu
阅读全文
posted @ 2012-01-19 18:51 php开发
阅读(1309)
评论(0)
推荐(1)
编辑
asp.net抓取163邮箱联系人实现代码
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Text;using System.Net;using System.IO;using System.Xml;namespace GetEmailAddress{ public class Address163 { //邮箱入口定义 const string mail_163_com ="https://reg.163.com/logins.jsp?username={0}&a
阅读全文
posted @ 2012-01-19 14:24 php开发
阅读(443)
评论(0)
推荐(1)
编辑
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理
一聚教程网