Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ºÃÓõÄphp¹ýÂËÌØÊâ×Ö·û

function htmldecode($str)
{
if(empty($str)) return;
if($str=="") return $str;
$str=str_replace("&",chr(34),$str);
$str=str_replace(">",">",$str);
$str=str_replace("<","<",$str);
$str=str_replace("&","&",$str);
$str=str_replace(" ",chr(32),$str);
$str=str_replace(" ",chr(9),$str);
$str=str_replace("'",chr(39),$str);
$str=str_replace("<br />",chr(13),$str);
$str=str_replace("''","'",$str);
$str=str_replace("select","select",$str);
$str=str_replace("join","join",$str);
$str=str_replace("union","union",$str);
$str=str_replace("where","where",$str);
$str=str_replace("insert","insert",$str);
$str=str_replace("delete","delete",$str);
$str=str_replace("update","update",$str);
$str=str_replace("like","like",$str);
$str=str_replace("drop","drop",$str);
$str=str_replace("create","create",$str);
$str=str_replace("modify","modify",$str);
$str=str_replace("rename","rename",$str);
$str=str_replace("alter","alter",$str);
$str=str_replace("cas","cast",$str);
$farr = array(
"/\s+/" , //¹ýÂ˶àÓàµÄ¿Õ°×
"/<(\/?)(img|script|i?frame|style|html|body|title|link|meta|\?|\%)([^>]*?)>/isU" , //¹ýÂË <script ·ÀÖ¹ÒýÈë¶ñÒâÄÚÈÝ»ò¶ñÒâ´úÂë,Èç¹û²»ÐèÒª²åÈëflashµÈ,»¹¿ÉÒÔ¼ÓÈë<objectµÄ¹ýÂË
"/(<[^>]*)on[a-zA-Z]+\s*=([^>]*>)/isU" , //¹ýÂËjavascriptµÄonʼþ
);
$tarr = array(
" " ,
"<\\1\\2\\3>" , //Èç¹ûÒªÖ±½ÓÇå³ý²»°²È«µÄ±êÇ©£¬ÕâÀï¿ÉÒÔÁô¿Õ
"\\1\\2" ,
);
$str = preg_replace ( $farr , $tarr , $str );
return $str;
}

ÍøÉÏÕҵ쬱¾ÈËÌ«ÀÁÁË£¬Ö±½Ó¿ÉÒÔÓá£


Ïà¹ØÎĵµ£º

PHP+DOM´´½¨XMLÎļþ

´´½¨ÎĵµÀàÐÍÉùÃ÷
Ò»°ã¶øÑÔ£¬XMLÉùÃ÷·ÅÔÚÎĵµ¶¥²¿¡£ÔÚPHPÖÐÉùÃ÷Ê®·Ö¼òµ¥£ºÖ»ÐèʵÀý»¯Ò»¸öDOMÎĵµÀàµÄ¶ÔÏ󲢸³ÓèËüÒ»¸ö°æ±¾ºÅ¡£²é¿´³ÌÐòÇåµ¥A£º
³ÌÐòÇåµ¥ A
<?php
// create doctype
$dom = new DOMDocument("1.0");
// display document in browser as plain text
// display document in browser as plain text ......

PHPͼ±íÖÆ×÷¹¤¾ß¼¯

ת×Ô£ºhttp://nedvedheqing.javaeye.com/blog/383506
1. PHPÀ©Õ¹
JpGraph£ºhttp://www.aditus.nu/jpgraph/
ChartDirector£ºhttp://www.advsofteng.com/
2. JavaScript
Flot (http://code.google.com/p/flot/
) - Flot Ϊ jQuery ÌṩµÄjavascript´úÂë¿â. ÈÝÒ×ʹÓã¬ÓÐÌØÉ«µÄͼ±í£¬Ìṩ½»»¥¹¦ÄÜ(Äܹ»·Å´óËõСÊý¾ÝÇøÓòµ ......

phpÔö,¸Ä,ɾ³ý²Ù×÷

<?php
class main extends spController
{
    function index(){
    echo "<p align=center><h1>HIS»ù´¡Êý¾Ýά»¤</h1>";
    echo "<p align=center><h2>¿ÆÊÒ×Öµä</h2>";
    $contentsurl=spUrl("main", "i ......

php ¼Ü¹¹ºÍģʽ

1 ´úÀí£¨Proxy£©ºÍίÅÉ£¨Delegate£©µÄÇø±ð
http://hi.baidu.com/thinkinginlamp/blog/item/2297a7efcb52a31afdfa3cc2.html
2 ¿ªÐÄÅ©³¡¼Ü¹¹½éÉÜ
http://www.javaeye.com/wiki/facebook/1766-five-minutes-happy-farm-structure-introduced
http://www.w2blog.net/view/455.html
3 SmugMug µÄ¼Ü¹¹½éÉÜ
http://www.w2blo ......

php ajax ±í¸ñÅÅÐò£¬µ÷ÕûÁÐ¿í£¬ÐÞ¸ÄÄÚÈÝ


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<meta http-equiv="Content-Type" content="text/html; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ