php自带函数strip_tags echo strip_tags("hello <b>world! </b>"); 自定义函数: function filterhtml($str) { ? ? ? ? $str=eregi_replace("</*[^<>]*>", , $str); ? ? ? ? $str=str_replace(" ", , $s...
分类:
Web程序 时间:
2014-12-30 17:25:08
阅读次数:
264
Published by 荒野无灯 on 2011-10-08 00:56:02 under 服务器/MySQL Tags: 路由,无线AP,hostapd 34452 views本文将介绍在linux下面用笔记本无线网卡架设无线AP。在win7下面用“承载网络”让爪机上wifi真是爽YY啊。其实l...
分类:
系统相关 时间:
2014-12-29 11:47:52
阅读次数:
504
做程序员有一段时间了,也有自己的喜好,比如,sublime编辑器,就很喜欢以下这种设置的字体:{ "auto_close_tags": true, "auto_complete": true, "auto_match_enabled": true, "color_scheme": "Packages...
分类:
其他好文 时间:
2014-12-25 20:01:37
阅读次数:
158
一、ansible安装1、安装第三方epel源centos5的epel#rpm-ivhhttp://mirrors.sohu.com/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpmcentos6的epel#rpm-ivhhttp://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm查看系统版本#cat/etc/issueCentOSrelea..
分类:
其他好文 时间:
2014-12-25 06:44:08
阅读次数:
598
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
Show Tags...
分类:
其他好文 时间:
2014-12-24 01:16:15
阅读次数:
148
原文:http://www.weiguda.com/blog/41/当我们设置服务器时, 不应该每次都使用ssh登录服务器, 再按照记忆一步一步的配置. 因为这样实在是太容易忘记某些步骤了.服务器设置应当自动化, 并写成文档. 在django用户中, Ansible, SaltStack, Pupp...
分类:
其他好文 时间:
2014-12-23 23:57:49
阅读次数:
378
平时用我们使用htmlspecialchars()来过滤html,但是把html的字符转义了,最后显示出来的就是html源代码.利用strip_tags()就可以把html标签去除掉.<?php$str=‘<ahref="#">href</a>‘;//echohtmlspecialchars($str);echostrip_tags($str);?>很多网站首页都有一片..
分类:
Web程序 时间:
2014-12-23 19:39:51
阅读次数:
156
使用SVN+Eclipse做软件版本控制,介绍分支和标记用法
1,SVN目录结构
Trunk : 主干目录,此目录下的文件为基准文件
Branches : 用于开发的分支目录
Tags : 用于发布的版本目录
下图是基于eclipse svn repositores查看的目录结构
(图片1 : 目录结构)
2,分支的版本...
分类:
其他好文 时间:
2014-12-23 15:39:00
阅读次数:
262
@font-face是CSS3中的一个模块,他主要是把自己定义的Web字体嵌入到你的网页中,随着@font-face模块的出现,我们在Web的开发中使用字体不怕只能使用Web安全字体,另外@font-face这个功能早在IE4就支持了,比如说首页的Logo,Tags以及页面中的手写英文体这些都可以用...
分类:
Web程序 时间:
2014-12-23 13:48:52
阅读次数:
341
使用struts2框架产生的问题:index.jsp:<%@pagelanguage="java"contentType="text/html;charset=UTF-8"%>
<jsp:forwardpage="/login/login.jsp"></jsp:forward>login.jsp:<%@pagelanguage="java"pageEncoding="UTF-8"%>
<%@tagliburi="/struts-tags"..
分类:
移动开发 时间:
2014-12-19 19:23:54
阅读次数:
235