PHP
布鲁斯大人
这个作者很懒,什么都没留下…
展开
-
PHP抓取网页和分析
译者:limodou 抓取和分析一个文件是非常简单的事。这个教程将通过一个例子带领你一步一步地去实现它。让我们开 始吧! 首先,我首必须决定我们将抓取的URL地址。可以通过在脚本中设定或通过$QUERY_STRING传递。为了简 单起见,让我们将变量直接设在脚本中。 第二步,我们抓取指定文件,并且通过file()函数将它存在一个数组里。转载 2009-08-16 01:02:00 · 1992 阅读 · 0 评论 -
php 长文章自动/手动分页类
<?php /* * 长文章分页类 * @package cutpage * @author yytcpt(无影) * @version 2008-03-27 * @copyrigth http://www.d5s.cn/ */ class cutpage{ var $page转载 2009-08-19 18:24:00 · 3444 阅读 · 2 评论 -
load() Function for PHP - Fetch URL Content
I recently had to develop a small script that willfetch an XML file from the web. All I had to do is download a given URLand read its contents. To my great surprise I found that download thefile转载 2009-08-18 02:32:00 · 1660 阅读 · 0 评论 -
使用 PHP 快速生成 Flash 动画
Jack D. Herrington, 高级软件工程师, Leverage Software Inc.2007 年 1 月 24 日Rich Internet Application 是 Web 2.0 中的新时髦词,并且就 Web 2.0的实质而言,一个关键组件就是 Adobe Flash。了解如何将 Flash 动画集成到应用程序中,并使用 Ming 库动态生成 Fla转载 2009-10-22 18:55:00 · 770 阅读 · 0 评论 -
php urlencode()
在PHP中有urlencode()、urldecode()、rawurlencode()、rawurldecode()这些函数来解决网页URL编码解码问题。在ASP的时候URL编码解码很是恼火,Server.urlencode不太好用,遇到utf-8编码的地址更是麻烦。你要获取百度、Google点击到网站的网址链接中的关键字,要写上一堆自定义函数来得到urldecode的效果。摘录转载 2010-03-01 00:34:00 · 763 阅读 · 0 评论 -
mysql子查询 -exists,not exists
(1)实现让结果集A-结果集B:--利用not exists,合并则可用unionexists,not exists:用于判断且获取结果集A是否存在地结果集B中!==========结果集A:SELECT d.Device_ID,d.Device_Name,a.App_ID,a.App_Name FRO转载 2010-04-12 04:13:00 · 963 阅读 · 0 评论 -
PHP 缓存内容为HTML并输出
<br />#$_time : 缓存时间 #$dir : 缓存路径 function cache_start($_time, $dir) { $cachefile = $dir.'/'.sha1($_SERVER['REQUEST_URI']).'.html'; $cachetime = $_time; ob_start(); if(file_exists($cachefile) && (time( )-$cachetime < filemtime($cachefile)))原创 2011-03-22 16:22:00 · 1076 阅读 · 0 评论 -
jquery .ajax ie6 error php 问题
在一个项目中使用了jquery框架(1.5.1),并使用了.ajax方法:$.ajax({ url: 'xxx.php', type: 'GET', dataType: 'html', contentType: "text/html; charset=utf-8", c原创 2011-03-26 00:28:00 · 1673 阅读 · 1 评论