- 博客(6)
- 收藏
- 关注
转载 移除Remove Microsoft Word HTML Tag
function cleanHTML($html) { /// /// Removes all FONT and SPAN tags, and all Class and Style attributes. /// Designed to get rid of non-standard Microsoft Word HTML tags. /// // start by completel
2013-11-06 21:48:28
637
转载 从服务器下载保存图片
$image = file_get_contents('http://www.url.com/image.jpg'); file_put_contents('/images/image.jpg', $image); //不过经过测试,使用curl响应速度更快
2013-11-06 21:43:55
563
转载 PHP 获取网页的所有超链接
PHP 获取网页的所有超链接<?php$html = file_get_contents('http://www.baidu.com'); $dom = new DOMDocument(); @$dom->loadHTML($html); $xpath = new DOMXPath($dom); $hrefs = $xpath->evaluate("/html/bo
2013-11-06 21:37:14
2343
转载 PHP操作Excel
实现步骤:一:去官网http://phpexcel.codeplex.com/下载最新PHPExcel放到Vendor下,注意位置:ThinkPHP\Extend\Vendor\PHPExcel\PHPExcel.php。二:在CommonAction.class.php中添加以下两个函数/** +-------------------------------------
2013-11-06 21:27:19
956
原创 CURL帮助函数
function uploadByCURL($post_data,$post_url){ $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $post_url); curl_setopt($curl, CURLOPT_POST, 1 ); curl_setopt($curl, CURLOPT_POSTFIELDS, $post_dat
2013-11-02 09:39:23
646
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人