php4 xml Éú³ÉÀà
ÓÉÓÚ ÔÚphp4µÄ»·¾³ÏÂ. ¶¼Ã»ÕÒµ½×Ô¶¯Éú³ÉµÄº¯Êý. ËùÒÔ×Ô¼º¸ÄдÁËÒ»¸ö±ðÈËЩµÄÀà. ÓÃÀ´×Ô¶¯Éú³Éxml Îļþ.
<?php
/*
*** ¹¦ÄÜ : php4×Ô動Éú³Éxml Îļþ類
*** @ edit: zxwo0o
*** @ time: 2009-9-22
*/
class php4xml{
var $version; //°æ±¾號
var $start; //¸ù節點開ʼÐÐ
var $end; //¸ù節點結ÊøÐÐ
var $xml_document;//xmlÎÄ檔µÄÖÐ間內ÈÝ
var $root_end; //節點結Êø 數組 ..ÓÃ춶à層節點
/*
*** ¹¦ÄÜ : 構Ô캯數
*** @ $ver: xml °æ±¾號
*** @ $encoding: xml ÎÄ檔編碼
*/
function php4xml($ver='1.0',$encoding='utf-8'){
$this->version="<?xml version=\"{$ver}\" encoding=\"{$encoding}\"?>";
$this->root_end = array(); //聲Ã÷為數組 ÓÃì¶區·Ö 層級.
}
/*
*** ¹¦ÄÜ : Ìí¼Ó¸ù節點開啟×Ö·û´®.°æ±¾號ÐÅÏ¢ 記錄¸ù節點結Êø×Ö·û´®
*** @ $element: ¸ù節點ÔªËØÃû稱
*** return : ³É¹¦·µ»Ø trun
*/
function root($element){
$element=$this->filter($element);
if(isset($this->start) and isset($this->end)){
exit("error:Only one top level element is allowed in an XML document.\r\n");
}else{
$this->start="<$element>";
$this->end="</$element>";
$this->xml_document=$this->version."\n".$this->start."\n";
return true;
}
}
/*
*** ¹¦ÄÜ : Ìí¼Ó節點開ʼ×Ö·û´®.屬ÐÔÃû稱.屬ÐÔÖµ. 記錄節點結Êø×Ö·û´®
*** @ $title: 節點ÔªËØÃû稱
*** @ $level: 節點ÔªËØËùÔÚµÄ層級 Ĭ認 0 ±íʾ¸ù節點µÄÏÂÒ»個節點
*** @ $property: 屬ÐÔÃû稱 Ä¿Ç°Ö»Ö§³Ö設ÖÃÒ»個屬ÐÔ
*** @ $pro_val: 屬ÐÔÖµ
Ïà¹ØÎĵµ£º
ÏÈ¿´¿´Ï±ßÕâ¶ÎPHP´úÂë¡£Õâ¶ÎʹÓÃip2longº¯Êý£¬¶Ôͬһ¸öIP½øÐÐת»»¡£µ±È»£¬Ò²ÓÐÈËÈÏΪ58.99.011.1ºÍ058.99.011.1Ëã²»ÉϺϷ¨µÄ
IP£¬ÄǾÍReturn£¬´ËÎĶÔÄãûÓаïÖú¡£
ΪʲôҪʹÓôøÇ°µ¼ÁãµÄip£ºÎªÁËÔÚÊý¾Ý¿âÖвéѯ£¬Õâ¸ö¿ÉÒÔÔÚIP¿âÖж¨Î»µ½ipËù¶ÔÓ¦µÄλÖÃÐÅÏ¢¡£ËäȻûÓÐÕûÐ͵ÄIP²éѯЧÂʸߣ¬µ«±Ï¾¹Ö±¹Û°¡¡£
<?php
ech ......
¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°
£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......
1.ʹÓÃPHPµÄ´´Ê¼ÈË Rasmus Lerdorf дµÄAPCÀ©Õ¹Ä£¿éÀ´ÊµÏÖ£¨http://pecl.php.net/package/apc£©
APCʵÏÖ·½·¨£º
°²×°APC£¬²ÎÕÕ¹Ù·½Îĵµ°²×°£¬¿ÉÒÔʹÓÃPECLÄ£¿é°²×°·½·¨¿ìËÙ¼ò½Ý£¬ÕâÀﲻ˵Ã÷
ÅäÖÃphp.ini£¬ÉèÖòÎÊý apc.rfc1867=1 £¬Ê¹APCÖ§³ÖÉÏ´«½ø¶ÈÌõ¹¦ÄÜ£¬ÔÚAPCÔ´Âë˵Ã÷ÎĵµÀïÃæÓÐ˵Ã÷
´úÂë·¶Àý£º
¸´ÖÆPHPÄÚÈݵ½¼ô ......
À´Ô´£ºÀ¶É«ÀíÏë¡¡×÷ÕߣºDreamer¡¡2007Äê10ÔÂ16ÈÕ 14:50¡¡ÍøÓÑÆÀÂÛ£º0Ìõ¡¡µã»÷£º
2737
DreamerµÄBlog£ºwww.zhuoqun.net/
Ó¢ÎÄÔÎÄ£ºCreating MyTube with Flex and PHP
ÔÎĵØÖ·£º
http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html
ÔÎÄ×÷ÕߣºJack Herrington
Ëæ×Å¿í´øµÄÆÕ¼°¡¢ ......
ÏÈ°²×°µÄzlib ./configure --prefix=/usr/local/zlib È»ºó×°µÄcurl ./configure --prefix=/usr/local/curl --with-zlib=/usr/local/zlib °²×°gdĬÈÏ°²×° ./configure --prefix=/usr/local/gd --with-zlib=/usr/local/zlib (ÓÐЩǰÃæÏÈ°²×°jepg,png...with¾Í¿ÉÒÔÁË,Ö®ºóphpµÄʱºò¿´./configure --helpÀïÃæÓоßÌåµÄ) ° ......