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

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 3des¼ÓÃÜ

3DES£¨¼´Triple DES£©ÊÇDESÏòAES¹ý¶ÉµÄ¶Ô³ÆÐÔ¼ÓÃÜËã·¨£¬ËüʹÓÃ3Ìõ64λµÄÃÜÔ¿¶ÔÊý¾Ý½øÐÐÈý´Î¼ÓÃÜ¡£ÊÇDESµÄÒ»¸ö¸ü°²È«µÄ±äÐΡ£ËüÒÔDESΪ»ù±¾Ä£¿é£¬Í¨¹ý×éºÏ·Ö×é·½·¨Éè¼Æ³ö·Ö×é¼ÓÃÜËã·¨¡£±ÈÆð×î³õµÄDES£¬3DES¸üΪ°²È«¡£
PHPÀûÓÃÀ©Õ¹¿âMcryptÀ´ÊµÏÖDES¼ÓÃÜ£¬ÕâÖÖ¼ÓÃܵĺô¦Ö÷ÒªÊDz»Í¬µÄÓïÑÔƽ̨Êý¾Ý¿ÉÒÔ½øÐн»»¥¼ÓÃÜ´«Ê䣬·ÀÖ¹ ......

PHP5.1.5_Apache2.2.3_MySQL5.0.24°²×°ÅäÖÃ

ËùÐèÈí¼þ£¨×¢Òâ°æ±¾£¡£©£º
Apache2.2.3
PHP5.1.5
MySQL5.0.24
ÕâÈý¸öÈí¼þ¶¼ÊÇÃâ·ÑµÄ£¬¿É´Ó¹ÙÍøÉÏÏÂÔØ£¬Ä¿Ç°ÎÒËùÓеÄÈí¼þÃûΪ£º
apache_2.2.3-win32-x86-no_ssl.msi
mysql-5.0.24-win32.zip
php-5.1.5-Win32.zip
»ùÓÚwindows²Ù×÷ϵͳ£¬ÔÚWindows XPÏ°²×°Ê¹Óãº
1¡¢°²×°¹ý³Ì£º
Ê×ÏÈ°²×°Apache·þÎñÆ÷£¬Ë«»÷apa ......

±¾µØPHPÁ¬½ÓÔ¶³Ì·þÎñÆ÷

    ֮ǰһֱ¶¼ÊÇÔÚ·þÎñÆ÷µ÷ÊÔ³ÌÐò£¬ÓÐÒ»ÌìÏëŪµ½±¾µØÀ´£¬¿ÉËÀ»î¾ÍÊÇÁ¬²»ÉÏÔ¶³Ì·þÎñÆ÷ÁË¡£
    ±¾µØ£ºwindows+apache¡£
    Ô¶³Ì·þÎñÆ÷£ºwindows+ms sql 2008.
   phpºÍapache¸ÃÅäÖõĶ¼ÅäÁË£¬ÆäËû³ÌÐòÒ²¿ÉÒÔÔËÐУ¬¿É¾ÍÊÇÁ¬²»ÉÏÊý¾Ý¿â¡£
   ¿à¿àÑ°ÃÙ ......

ÖØȼÄãµÄPHP°²È«Ö®»ð

¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾­³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°
£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......

php ¹ºÎﳵʵÀý

php ¹ºÎﳵʵÀý
 <?php
/**
php ¹ºÎﳵʵÀý
ÍøÉÏËѵ½µÄ£¬¼òµ¥ÈÝÒ×Àí½â¡£cookie´æ¹ºÎï³µID£¬db´æ¹ºÎï³µÊý¾Ý¡£ ¹ºÎï³µsessionµÄ²úÉú´úÂë
*/
if(! $session && ! $scid) {
/*
sessionÓÃÀ´Çø±ðÿһ¸ö¹ºÎï³µ£¬Ï൱ÓÚÿ¸ö³µµÄÉí·ÝÖ¤ºÅ£»
scidÖ»ÓÃÀ´±êʶһ¸ö¹ºÎï³µidºÅ£¬¿ÉÒÔ¿´×öÊÇÿ¸ö³µµÄÃû×Ö£»
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ