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

ѸËÙѧ»áPHP¼ÓÃܽâÃܼ¼ÇÉ

Ïл°ÉÙ˵,ÏȽ«ËüÃÇ´ò°ü³ÉÒ»¸öÎļþ¾Í½Ðfun.php°É
< ?php  
function passport_encrypt($txt, $key) {  
srand((double)microtime() * 1000000);  
$encrypt_key = md5(rand(0, 32000));  
$ctr = 0;  
$tmp = '';  
for($i = 0;$i < strlen($txt); $i++) {  
$ctr = $ctr == strlen($encrypt_key) ? 0 : $ctr;  
$tmp .= $encrypt_key[$ctr].($txt[$i]
 ^ $encrypt_key[$ctr++]);  
}  
return base64_encode(passport_key($tmp, $key));  
}  
function passport_decrypt($txt, $key) {  
$txt = passport_key(base64_decode($txt), $key);  
$tmp = '';  
for($i = 0;$i < strlen($txt); $i++) {  
$md5 = $txt[$i];  
$tmp .= $txt[++$i] ^ $md5;  
}  
return $tmp;  
}  
function passport_key($txt, $encrypt_key) {  
$encrypt_key = md5($encrypt_key);  
$ctr = 0;  
$tmp = '';  
for($i = 0; $i < strlen($txt); $i++) {  
$ctr = $ctr == strlen($encrypt_key) ? 0 : $ctr;  
$tmp .= $txt[$i] ^ $encrypt_key[$ctr++];  
}  
return $tmp;  
}  
?> 
ÒÔÏÂÊÇһЩʾÀý…¼ÓÉî¶ÔÕâÈý¸öPHP¼ÓÃܽâÃܺ¯ÊýµÄÀí½â…
 
//string.php  < ?php  include “fun.php”;  $txt = “This is a test”;  $key = “testkey”;  $encrypt = passport_encrypt($txt,$key);  $decrypt = passport_decrypt($encrypt,$key);  echo $txt.”< br>< hr>”;


Ïà¹ØÎĵµ£º

ÈÃPHP¿ª·¢Õßʰ빦±¶µÄÊ®´ó¼¼ÇÉ

Èç¹ûÄãʹÓÃÒ»Ãæ´ó¾µ×Ó×÷Ϊ³åÀ˰å»á·¢Éúʲô£¿»òÐíÄã»áÔڽ϶̵Äʱ¼äÄÚÕ÷·þº£ÀË£¬µ«ÊÇÄã¿Ï¶¨´ÓÄÚÐÄÉî´¦Ã÷°×£¬Õâ²»ÊdzåÀ˵ÄÕýÈ·Ñ¡Ôñ¡£Í¬ÑùµÄµÀÀíÒ²ÊÊÓÃÓÚPHP±à³Ì£¬¾¡¹ÜÕâÑùµÄÀà±ÈÌýÆðÀ´ÓÐһЩ¹Å¹Ö¡£ÎÒÃǾ­³£Ìýµ½ÓÐÈËÊÔͼÓÃÒ»¸öÖÜÄ©¶àµãµÄʱ¼äÀ´Ñ§»áPHP£¬µ«ÊÇÇëË¡ÎÒÖ±ÑÔ£¬ÕâÊÇѧϰÕâÃűà³ÌÓïÑÔµÄÒ»Öַdz£Ôã¸âµÄ·½Ê½¡£
ΪºÎ资 ......

ѧϰphp Reflection£¨Ò»£©

¿´yii¿ò¼ÜÔ´ÂëµÄʱºò£¬·¢ÏÖÁË
ReflectionClassÕâ¸ö·½·¨£¬²Å·¢ÏÖÔ­À´ÊÇphp5µÄж«Î÷£¬ÓÚÊÇÉÔ΢Ñо¿ÁËÏ¡£phpµÄ·´ÉäapiÒ»¹²ÓУº
class 
Reflection 
{ }
interface Reflector 
{ }
class 
ReflectionException 
extends 
Exception 
{ }
class 
Re ......

£Ûת£ÝPHP·ÖÒ³ÏÔÊ¾ÖÆ×÷Ïêϸ½²½â


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

Linux ÏÂphpµÄ°²×°

»·¾³Èí¼þ°æ±¾½éÉÜ£º
 
   APACHE 2.0.59
   PHP5.2.3
   MYSQL5.0.45
   GD-2.0.35
   Zend Optimizer v3.3.0
  
                     ......

PHP»ñÈ¡MSNºÃÓÑÁбíÀà

<?php
/********************************************************************
*   FileName: class.msn.php
*   by changwei, 2010-4-13
*   Contact MSN:  changwei0112@hotmail.com
*    »ñÈ¡MSNºÃÓÑEmailÁбí 

========================== ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ