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

phpÖмÆËãʱ¼ä²îµÄ¼¸ÖÖ·½·¨

ÔÚphpÖмÆËãʱ¼ä²îÓÐʱºòÊǼþÂé·³µÄÊÂ!²»¹ýÖ»ÒªÄãÕÆÎÕÁËÈÕÆÚʱ¼äº¯ÊýµÄÓ÷¨ÄÇÕâЩҲ¾Í±äµÄ¼òµ¥ÁË:  
Ò»¸ö¼òµ¥µÄÀý×Ó¾ÍÊǼÆËã½èÊéµÄÌìÊý,ÕâÐèÒªphp¸ù¾ÝÿÌìµÄÈÕÆÚ½øÐмÆËã,ÏÂÃæ¾ÍÀ´Ì¸Ì¸ÊµÏÖÕâÖÖÈÕÆÚ¼ÆËãµÄ¼¸ÖÖ·½·¨:
(1) Èç¹ûÓÐÊý¾Ý¿â¾ÍºÜÈÝÒ×ÁË!ÈôÊÇMSSQL¿ÉÒÔʹÓô¥·¢Æ÷!ÓÃרÃżÆËãÈÕÆÚ²îµÄº¯Êýdatediff()±ã¿É!  
  ÈôÊÇMYSQLÄǾÍÓÃÁ½¸öÈÕÆÚ×ֶεIJîÖµ¼ÆËãµÄ¼ÆËã½á¹û±£´æÔÚÁíÒ»¸öÊýÖµÐÍ×Ö¶ÎÖÐ!ÓÃʱµ÷Óñã¿É!
(2)Èç¹ûûÓÐÊý¾Ý¿â,ÄǾ͵ÃÍêÈ«ÓÃphpµÄʱ¼äÈÕÆÚº¯Êý!ÏÂÃæÖ÷Ҫ˵Ã÷Ö®:  
  Àý:¼ÆËã1998Äê5ÔÂ3ÈÕµ½1999-6-5µÄÌìÊý:  
<? $startdate=mktime("0","0","0","5","3","1998");
   $enddate=mktime("0","0","0","6","5","1999");
   //ËùµÃµ½µÄֵΪ´Ó1970-1-1µ½²ÎÊýʱ¼äµÄ×ÜÃëÊý:ÊÇÕûÊý.ÄÇô 
   //ÏÂÃæµÄ´úÂë¾ÍºÃ±à¶àÁË:
  $days=round(($enddate-$startdate)/3600/24) ;
  echo $days;
  //daysΪµÃµ½µÄÌìÊý;
  Èômktime()ÖеIJÎÊýȱʡ,ÄDZíʾʹÓõ±Ç°ÈÕÆÚ,ÕâÑù±ã¿É¼ÆËã´Ó½èÊéÈÕÆÚÖÁ½ñµÄÌìÊý.    
  ¿É±ðÍüÁ˵½ÆÚ»¹ÊéÓ´!¹ýÆÚ¿ÉÊÇÒª·£¿îµÄ!! @_@


Ïà¹ØÎĵµ£º

php ÑéÖ¤Âë

checkcode.php
====================
<?php
session_start();
$funcs = array('imagecreatetruecolor','imagecolorallocate','imagefill','imageline','imagedestroy','imagecolorallocatealpha','imageellipse','imagepng');
if(!function_exists('ob_gzhandler'))
    ob_clean();
 //crea ......

ʵ¼Ê¿ª·¢ÖпÉÄÜÓõ½µÄPHPµÄ×Ö·û´®²Ù×÷º¯Êý(×ܽá)

ÔÚ±à³ÌµÄ¹ý³Ìµ±ÖÐ,×Ö·û´®µÄ²Ù×÷ÊǷdz£ÖØÒªµÄ²¢ÇÒ¾­³£»á±»Óõ½,×Ö·û´®³£ÓõIJÙ×÷¾ßÌåµÄ°üÀ¨×Ö·û´®µÄÆ´½Ó,Ìæ»»×Ö·û´®,²éÕÒ×Ö·û´®,±È½Ï×Ö·û´®,¸´ÖÆ×Ö·û´®ÒÔ¼°¼ÆËã×Ö·û´®µÄ³¤¶ÈµÈµÈ.
1,Æ´½Ó×Ö·û´®
Æ´½Ó×Ö·û´®ÊÇ×î³£Óõ½µÄ×Ö·û´®²Ù×÷Ö®Ò»,ÔÚPHPÖÐÖ§³ÖÈýÖÖ·½Ê½¶Ô×Ö·û´®½øÐÐÆ´½Ó²Ù×÷,·Ö±ðÊÇÔ²µã.·Ö¸ô·û{}²Ù×÷,»¹ÓÐÔ²µãµÈºÅ.=À´½ø ......

ºÜºÃÓõÄphpÖ´ÐÐʱ¼ä·ÖÎö¹¤¾ßwebgrind

ÒÔǰ·ÖÎöxdebugÓõÄÊÇ£¨wincachegrind£©http://sourceforge.net/projects/wincachegrind/
ÏÖÔÚÖ±½Ó°²×°webgrindÀ´µ÷ÊÔËÙ¶È»á¸üºÃ
http://xdebug.org/
ÏÂÔØµØÖ·£º
Source:
xdebug 2.0.3
Windows modules:
PHP 5.1.2-5.1.7
PHP 5.2.1-5.2.6
PHP 5.3.0dev
windows
±à¼­php.ini£¬ÏÈ×¢Ê͵ôzend£º
[Zend]
;zend ......

php²Ù×÷word

<?

//
½¨Á¢Ò»¸öÖ¸ÏòÐÂCOM×é¼þµÄË÷Òý
$word

=

new
COM(”word
.
application”) or
die
(”Can
'
t start Word!”);
// ÏÔʾĿǰÕýÔÚʹÓõÄWordµÄ°æ±¾ºÅ
//echo “Loading Word, v. {$word->Version}<br>”;
// °ÑËüµÄ¿É¼ûÐÔÉèÖÃΪ0£¨¼Ù£©£¬Èç¹ûÒ ......

¡¾PHPϵÁн̡̳¿(1)——µÚÒ»¸öPHPÒ³Ãæ

¡¾PHPϵÁн̡̳¿ÊǸù¾ÝÏÖÓС¶PHP Manual¡·½øÐÐÊÕ¼¯ºÍÕûÀíËùµÃ£¬ËùÓдúÂë¶¼ÒѾ­²âÊÔͨ¹ý¡£ÔÚ×ªÔØ¹ý³ÌÖУ¬Çë×¢Ã÷³ö´¦¡£
Ò»¡¢Ô¤±¸ÖªÊ¶£ºPHP»·¾³µÄ´î½¨
»·¾³µÄ´î½¨ÔÚÇ°ÃæÒѾ­¸ø³öÁËÏêϸµÄ˵Ã÷£¬ÍøÖ·Îª£ºhttp://blog.csdn.net/rocket5725/archive/2009/12/28/5090489.aspx¡£
¶þ¡¢µÚÒ»¸öPHPÒ³Ãæ
ÔÚWEB·þÎñÆ÷¸ùĿ¼ÏÂD:\Progra ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ