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

PHP Log Class

ob_start();
echo "<pre>";
print_r($content);
echo "</pre>";
$a=ob_get_contents();
$filename = $_SERVER['DOCUMENT_ROOT']."/log-".date("Y-m-d").".txt";
$file = fopen($filename, "a");
$tipmsg = "\r\n******Final File: "
//.end(explode('/',$_SERVER['PHP_SELF']))
.$_SERVER['PHP_SELF']
."\r\n******Code Container: "
.str_replace("\\","/",substr(__FILE__,strlen($_SERVER['DOCUMENT_ROOT'])))
."\r\n******Time: "
.date("Y-m-d H:i:s")."\r\n\r\n";
fwrite($file, $a.$tipmsg);
fclose($file);
ob_end_clean();


Ïà¹ØÎĵµ£º

phpѧϰ±Ê¼Ç£¨2£©

phpÅäÖÃÌ«¸´ÔÓÁË,×òÌìÍíÉÏÅäÖÃÁ˰ëÌ컹ûÓгɹ¦!²»µÃ²»Ñ°Çó¸ü¼òµ¥µÄ½â¾ö·½·¨:WampServer 5 ¼¯³É»·¾³
Wamp5ÊÇApache+PHP+Mysql ÔÚWindowsÏµļ¯³É»·¾³£¬ÓµÓмòµ¥µÄͼÐκÍ
²Ëµ¥°²×°¡£¸Ã°æ±¾¼¯³ÉÁËPHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 ÂúÁ˴󲿷ÖPHPerµÄÐèÇó.
´ÓÓï·¨ÉÏ¿´£¬PHPÓïÑÔ½üËÆÓÚCÓï ......

PHP 5.2.11°æ±¾ÐÞ¸´¶à¸ö°²È«Â©¶´

ÊÜÓ°Ïìϵͳ£º
PHP PHP 5.2.x
²»ÊÜÓ°Ïìϵͳ£º
PHP PHP 5.2.11
ÃèÊö£º
BUGTRAQ  ID: 36449
CVE ID: CVE-2009-3291,CVE-2009-3292,CVE-2009-3293,CVE-2009-3294
PHPÊǹ㷺ʹÓõÄͨÓÃÄ¿µÄ½Å±¾ÓïÑÔ£¬ÌرðÊʺÏÓÚWeb¿ª·¢£¬¿ÉǶÈëµ½HTMLÖС£
PHPµÄ5.2.11֮ǰ°æ±¾µÄ¶à¸öº¯ÊýÖдæÔÚ°²È«Â©¶´£¬¿ÉÄÜÔÊÐíÔ¶³Ì¹¥»÷Õßµ¼ ......

phpѧϰ±Ê¼Ç£¨3£©:PHP»ù±¾Óï·¨ºÍÊý¾ÝÀàÐÍ£º

PHP»ù±¾Óï·¨ºÍÊý¾ÝÀàÐÍ£º
£¨1£©¡¢PHP»ù±¾Óï·¨£º
 1¡¢htm ºÍ php »ì±à
 
2¡¢Ò»¸öÓï¾äÒÔ  ; (·ÖºÅ½áÊø)
 
3¡¢ÈçºÎ¶¨ÒåÒ»¸ö±äÁ¿£¬ºÍ±äÁ¿µÄʹÓÃ
 (2)PHPÊý¾ÝÔËËãÀàÐÍ
 ËÄÖÖ±êÁ¿ÀàÐÍ£º
 
boolean£¨²¼¶ûÐÍ£© Àí½âÎªÕæ¼ÙÐÍ
 
integer£¨ÕûÐÍ£©
 
float£¨¸¡µãÐÍ£¬Ò²×÷ ......

phpѧϰ±Ê¼Ç£¨5£©:PHPÌõ¼þÓï¾äµÄ½éÉÜÓëÓ¦Óãº


PHPÌõ¼þÓï¾äµÄ½éÉÜÓëÓ¦ÓÃ
1¡¢if Ìõ¼þÓï¾ä
if(expr)
    echo TRUE
else
    echo FALSE
if(expr) {
    echo TRUE
}else{
    echo FALSE
}
f(expr) {
    echo&n ......

PHP±ÈASPÓÅÐãµÄÆß¸öÀíÓÉ ÄÏÈý·½

ASPÊÇ΢Èí¹«Ë¾ÊµÏÖ¶¯Ì¬ÍøÒ³µÄÒ»ÖÖ¼¼Êõ¡£
ASPÖ§³ÖһЩ½Å±¾ÓïÑÔ£¬Ö÷ÒªÒÔVBScriptΪÖ÷¡£
ÓëASPÏà±È½Ï£¬Ä㻹¿ÉÒÔÑ¡ÔñÁíÒ»Öпª·ÅÔ´´úÂë±à³ÌÓïÑÔ——PHP£¬PHP¿ÉÒÔÔËÐÐÔÚ¶àÖÖ²Ù×÷ϵͳÏ£¬ÆäÖаüÀ¨LinuxºÍwindows¡£
ËäÈ»ASPÊÇÒ»ÖÖ²»´íµÄ¼¼Êõ£¬µ«´Ó³¤Ô¶¿¼ÂÇÎÒÏàÐÅPHPÔÚ½«À´µÄ¼¼ÊõÁìÓòÀï»áÓв»·²µÄ±íÏÖ¡£
ÎÒÈÏΪÓÐÆß¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ