¼òµ¥µÄ¼ÆËãphpÒ³Ãæ´¦Àíʱ¼ä
<?php
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
//Àý×Ó
//¿ªÊ¼
$time_start = getmicrotime();
//ÕâÀï·ÅÄãµÄ´úÂë
//½áÊø
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Did nothing in $time seconds"; //Êä³öÔËÐÐ×Üʱ¼ä
?>
Ïà¹ØÎĵµ£º
¶àÅóÓѶ¼Ìáµ½¹ý WINDOWS 2003 + IIS 6.0 °´ÕÕÍøÉÏÌṩµÄ·½·¨ ÎÞÂÛÔõôÅäÖö¼²»³É¹¦ ËÑË÷ÁËһϠ¿´µ½µ½´¦¶¼ÊÇͬһ¸ö°æ±¾µÄ·°æתÔØ ¹ûÈ»ÊDz»Äܳɹ¦
ÏÖÔÚÐðÊöһϱ¾Õ¾ÔÚWINDOWS 2003 IIS 6.0 ÖÐÊÇÈçºÎÅäÖà PHP»·¾³µÄ
Èà IIS6.0 Ö§³Ö PHP -=> php4.3.9 µÄ°²×°ÅäÖÃ
²»½¨ÒéʹÓð²×°°æ ÕâÀïÑ¡ÓÃÁË php4.3.9 µÄ½âѹ°æ
µÚÒ»² ......
½üÀ´¶Ôphp±È½Ï¸ÐÐËȤ£¬¾Í¶Ï¶ÏÐøÐøµÄ»¨ÁËÁ½¸öÐÇÆÚµÄʱ¼ä°ÑÕû¸öphp¿ª·¢ÐèÒªÓõ½µÄ¶«Î÷¶¼×°ºÃÁË£¬´ó¸ÅµÄ°²×°¹ý³ÌÈçÏ¡£
Ò»¡¢°²×°µÄÈí¼þ:
Apache: 2.2.14
PHP:5.2.12
MySQL:5.1.42¡£
SVN:1.5.6
PHPMyAdmin:3.2.5
Zend Studio: 7.1
Zend Debugger: 5.1.14
¶þ¡¢°²×°¹ý³Ì£º
1. °²×°ºÍÅäÖÃapache
°²×°£ºÊ×ÏÈ´Óhttp://apa ......
×°ÁËPHP-5.3.0, Æô¶¯µÄʱºò×ÜÊÇ»áÓÐ
"[06-Aug-2009 13:27:31] PHP Warning: PHP Startup: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are stil ......
¿ÉÒÔʹÓõÄÃüÁ
popen
fpassthru
shell_exec
exec
system
1.popen
resource popen
( string command, string mode )
´ò¿ªÒ»¸öÖ¸Ïò½ø³ÌµÄ¹ÜµÀ£¬¸Ã½ø³ÌÓÉÅÉÉú¸ø¶¨µÄ command
ÃüÁîÖ´Ðжø²úÉú¡£
·µ»ØÒ»¸öºÍ fopen()
Ëù·µ»ØµÄÏàͬµÄÎļþÖ¸Õ룬ֻ²»¹ýËüÊǵ¥ÏòµÄ£¨Ö»ÄÜÓÃÓÚ¶Á»òд£©²¢ÇÒ±ØÐëÓà pclose()
À´¹Ø±Õ ......
LinuxÏÂÈí¼þ¡¢PHPºÍPerlµÄÄ£¿éµÈ¶¼ÊµÏÖÁË×Ô¶¯°²×°£¬ÕæµÄºÜ·½±ã£¬±¾Îļòµ¥½éÉÜһϡ£
linuxÏ¿ÉÒÔʹÓÃyum¹¤¾ß£¬RedhatÏÂ×Ô¶¯´øÓУº
yum list php* //¿ÉÒԲ鿴phpµÄÏà¹ØÄ£¿é
yum install php //°²×°phpÕâ¸öÄ£¿é
phpÄ£¿éµÄ×Ô¶¯°²×°(ÀûÓÃpecl.php.netºÍpear.php.netÔÚÏß°²×°)£º
ÀûÓÃpearºÍpecl¹¤¾ß£¬Ê×ÏÈÐèÒª° ......