- 博客(5)
- 收藏
- 关注
原创 link rel=canonical 用法
2009年2月份,谷歌、雅虎和live search 三家搜索引擎宣布支持Link的一个新属性Canonical,其目的是帮助网站管理员们,解决网站内容存在多个版本时,指定规范链接,帮助解决内容重复收录问题。其标准用法是: <link rel="canonical" href="http://www.domain.com/index.html" /> 一般推荐...
2011-12-30 00:20:00 334
原创 PHP XML操作类 xml2array -- 含节点属性
1. 单向xml2array函数 function xml2array($contents, $get_attributes=1, $priority = 'tag') { if(!$contents) return array(); if(!function_exists('xml_parser_create')) { //print ...
2011-12-22 03:30:06 196
原创 基于PHP的Google Voice 短信API
1. 简单类 class.googlevoice.php <?PHP/*Version 0.2License This code is released under the MIT Open Source License. Feel free to do whatever you want with it.Author lost...
2011-12-15 23:07:33 780
原创 PHP 搜索分词
1. 简单的英文分词 <?php $search = 'this is a testing'; $words = explode(' ', $search); $length = count($words); for($i = 0; $i < $length; $i++) echo $words[$i].'<br />...
2011-12-13 05:03:00 324
原创 google map 根据地址 查找经纬度
实例: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> &l
2011-12-03 00:20:22 1513
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人