是获取表单的数据再用update更新到mysql教程数据库教程
php 与access 数据库连接实例
php 与pdo 数据库连接实例
php 适合入门者php 简单文件上传
php 根据ip判断用户所在城市程序
php 模拟用户获取远程文件内容
1,ini_get : Returns the value of the configuration option as a string on success, or an empty string on failure(读取 php教程.ini 配置文件中的值)
2,; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
php 采集远程网页图片并保存到本地
ob_start : 打开输出缓冲
readfile : 读入一个文件并写入到输出缓冲
php cURL 抓取网页 POST数据及其他
使用PHP的cURL库可以简单和有效地去抓网页。你只需要运行一个脚本,然后分析一下你所抓取的网页,然后就可以以程序的方式得到你想要的数据了。无论是你想从从一个链接上取部分数据,或是取一个XML文件并把其导入数据库教程,那怕就是简单的获取网页内容,cURL 是一个功能强大的PHP库。本文主要讲述如果使用这个PHP库。
PHP命名空间规则解析及高级功能
日前发布的PHP 5.3中,最重要的一个新特性就是命名空间的加入。本文介绍了PHP命名空间的一些术语,其解析规则,以及一些高级功能的应用,希望能够帮助读者在项目中真正使用命名空间。
php mysql 创建索引视图实例教程
述前说明:
CREATE VIEW 语句时,ANSI_NULLS 和 QUOTED_IDENTIFIER 选项必须设置为 ON。OBJECTPROPERTY 函数通过 ExecIsAnsiNullsOn 或 ExecIsQuotedIdentOn 属性为视图报告此信息
php google baidu yahoo 收录查询程序
function getGoogleIndex(http://pic1.phprm.com/2015/07/04/http://pic1.phprm.com/2015/07/04/http://pic1.phprm.com/2015/07/04/http://pic1.phprm.com/2015/07/04/$url.jpg.jpg.jpg.jpg, $type) {
$url = getShortUrl($url);
$content = getUrlContent("http://www.google.com.hk/search?hl=zh-CN&source=hp&q=$type:$url");
$content = @iconv('gb2312', 'utf-8', $content);
switch ($type) {
case 'site' :
$pattern = "/获得约 <b>(.*?)</b> 条结果/i";
break;
case 'link' :
$pattern = "/有 <b>(.*?)</b>/i";
break;
default :
exit;
}
preg_match($pattern, $content, $GoogleIndex);
return str_replace('约', '', $GoogleIndex[1]);
}
PHP5中使用DOM控制XML实现代码
<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title>javascript教程</title>
<link>http://blog.phprm.com/zhongmao/category/29515.asp教程x</link>
<description>javascript</description>
<language>zh-chs</language>
<generator>.text version 0.958.2004.2001</generator>
<item>
<creator>zhongmao</creator>
<title orderby="1">out put excel used javascript</title>
<link>http://blog.phprm.com/zhongmao/archive/2004/09/15/105385.aspx</link>
<pubdate>wed, 15 sep 2004 13:32:00 gmt</pubdate>
<guid>http://blog.phprm.com/zhongmao/archive/2004/09/15/105385.aspx</guid>
<comment>http://blog.phprm.com/zhongmao/comments/105385.aspx</comment>
<comments>http://blog.phprm.com/zhongmao/archive/2004/09/15/105385.aspx#feedback</comments>
<comments>2</comments>
<commentrss>http://blog.phprm.com/zhongmao/comments/commentrss/105385.aspx</commentrss>
<ping>http://blog.phprm.com/zhongmao/services/trackbacks/105385.aspx</ping>
<description>test description</description>
</item>
<item>
<creator>zhongmao</creator>
<title orderby="2">out put word used javascript</title>
<link>http://blog.phprm.com/zhongmao/archive/2004/08/06/67161.aspx</link>
<pubdate>fri, 06 aug 2004 16:33:00 gmt</pubdate>
<guid>http://blog.phprm.com/zhongmao/archive/2004/08/06/67161.aspx</guid>
<comment>http://blog.phprm.com/zhongmao/comments/67161.aspx</comment>
<comments>http://blog.phprm.com/zhongmao/archive/2004/08/06/67161.aspx#feedback</comments>
<comments>0</comments>
<commentrss>http://blog.phprm.com/zhongmao/comments/commentrss/67161.aspx</commentrss>
<ping>http://blog.phprm.com/zhongmao/services/trackbacks/67161.aspx</ping>
<description>test word description</description>
</item>
<item>
<creator>zhongmao</creator>
<title orderby="3">xmlhttp</title>
<link>http://blog.phprm.com/zhongmao/archive/2004/08/02/58417.aspx</link>
<pubdate>mon, 02 aug 2004 10:11:00 gmt</pubdate>
<guid>http://blog.phprm.com/zhongmao/archive/2004/08/02/58417.aspx</guid>
<comment>http://blog.phprm.com/zhongmao/comments/58417.aspx</comment>
<comments>http://blog.phprm.com/zhongmao/archive/2004/08/02/58417.aspx#feedback</comments>
<comments>0</comments>
<commentrss>http://blog.phprm.com/zhongmao/comments/commentrss/58417.aspx</commentrss>
<ping>http://blog.phprm.com/zhongmao/services/trackbacks/58417.aspx</ping>
<description>xmlhttpaaa asd bb cc dd</description>
</item>
</channel>
</rss>
<?