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

JSP/PHPÔËÓÃÏê½â

1£¬DateTimeÀàÐÍÊý×Ö 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
µ±Ç°Ê±¼äSystem.DateTimeµÄ=ÐÂSystem.DateTimeµÄ£¨£©; 
1.1Сʱ·ÖÖÓµ±Ç°ÈÕÆÚÃ룬µ±Ç°Ê±¼ä= System.DateTime.Now; 
1.2¼ì²é±¾Äê¶ÈÁ®ÕþÄê= currentTime.Year; 
1.3µ±Ç°Ô·ÝÁ®Õþ¸öÔÂ= currentTime.Month; 
1,4²ÉÈ¡µ±ÌìÁ®ÕþÌì= currentTime.Day; 
1.5»ñÈ¡µ±Ç°Ê±¼äÁ®Õþʱ¼ä= currentTime.Hour; 
1.6¼ì²éµ±Ç°µÄ·ÖÔ´Ç鱨վ= currentTime.Minute; 
ÒÔÄ¿Ç°µÄ1.7ÃëÁ®ÕþÃë= currentTime.Second; 
ÒÔÄ¿Ç°1.8ºÁÃëÁ®ÕþºÁÃë= currentTime.Millisecond; 
£¨±äÁ¿¿ÉÓÃÖÐÎÄ£© 
2£¬Int32.Parse£¨±äÁ¿£©£¬Int32.Parse£¨“³£Á¿”£© 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
ת»»Îª32λ×Ö·û×ÖÌå 
3¸ö±äÁ¿¡£µÄtoString£¨£© 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
·ûºÅת»»ÎªÒ»¸ö×Ö·û´® 
12345.ToString£¨“n”ÐÍ£©; / /Éú³É12,345.00 
12345.ToString£¨“C”Àࣩ; / /Éú³É£¤12,345.00 
12345.ToString£¨“µç×Ó”£©; / /Éú³É1.234500e 004 
12345.ToString£¨“F4”Àࣩ; / /Éú³É12,345.0000 
12345.ToString£¨“×”£©; / /Éú³É3039£¨16½øÖÆ£© 
12345.ToString£¨“p”±íʾ£©; / /Éú³É1,234,500.00£¥ 
4£¬±äÁ¿¡£³¤¶ÈÊýÖµ 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
»ñÈ¡×Ö·û´®³¤¶È£º 
È磺×Ö·û´®str =“Öйú”; 
Á®Õþ³¤¶È= str.length; / / lenÊÇÒ»¸ö×Ô¶¨Òå±äÁ¿strÊÇʵÏֿɺâÁ¿µÄ±äÁ¿Ãû³Æ×Ö·û´® 
5£¬System.Text.Encoding.Default.GetBytes£¨±äÁ¿£© 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
λÂë×ÖÂ뿪¹Ø 
ÀýÈ磺×Ö½Ú[] bytStr = System.Text.Encoding.Default.GetBytes£¨º£Ï¿£©; 
Æä´ÎÊÇ볤£º 
³¤¶È= bytStr.Length; 
6£¬System.Text.StringBuilder£¨“”£© 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
×Ö·û´®Ìí¼Ó£¨+Êý×ÖÊDz»Ò»ÑùµÄÊ£¿£© 
ÓÉÓÚSystem.Text.StringBuilderijÈË=ÐÂSystem.Text.StringBuilder (""); 
sb.Append£¨“ÖлªÈËÃñ¹²ºÍ¹ú”£©; 
sb.Append£¨“¹«¹²”£©; 
sb.Append£¨“¹²ºÍ¹ú”£©; 
7£¬±äÁ¿¡£´®£¨²ÎÊý1£¬²ÎÊý2£©; 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
À¹½ØµÄ×óÔ­À´µÄ²ÎÊý×Ö·û´®µÄÒ»²¿·ÖÓÒÒíµÄÊý×Ö£¬ÉÙÊýÀ¹½Ø²ÎÊý2¡£
ÀýÈç£


Ïà¹ØÎĵµ£º

ÀûÓÃWindows Schedule TaskÔËÐÐphp³ÌÐò

¼Æ»®ÈÎÎñ£¨Schedule Task£©ÊÇwindowsƽ̨ÉϺÍcronÀàËƵÄÒ»¸ö³ÌÐò£¬µ±È»¹¦ÄÜÉϲîÁ˺ܶàÁË¡£
ÒòΪÐèҪÿ¸öСʱÔËÐÐÒ»¸öPHP³ÌÐò£¬ÊÖ¶¯²Ù×÷²»ÏÖʵÁË¡£
Ê×ÏÈÔÚcmdϲâÊÔ£¬ÀýÈ磺 c:\appserv\php5\php.exe "C:\AppServ\www\temp2.php"
ÓÐÒ»µãҪעÒâ¾ÍÊÇÈç¹ûÄǸöPHPÒýÓÃÁËÆäËûÒ³Ã棬ÐèÒªÌṩ¾ø¶Ô·¾¶ÁË£¬ÖÁÉÙÎҵIJâÊÔ ......

PHP~ Ò»ÑÔÄѾ¡~~~~~~~~~~ÎÒ×Ô¼ºµÄ¹ÊÊÂ

ÎÄÕÂÔ­ÏÈ·¢±íÔÚCSDNÂÛ̳ÉÏÃ棬µ«ÊǺóÀ´¾õµÃ²»Ì«Íס£ËùÒÔûÓÐÔÚCSDNÖмÌÐøдÏÂÈ¥£¬×ª·¢µ½ÕâÀïÁË¡£
Ô­Ìûhttp://topic.csdn.net/u/20090910/13/fc1e87d1-79b8-488b-b94a-403a0147bca8.html?80258
-------------------------------------------------------------
°¦~
ѧPHPÒ²²»ÖªµÀÓж೤ʱ¼äÁË¡£
·´Õý´Ó´óÒ»µÄʱºò¿ª ......

PHP VS ASP.NET


PHP VS ASP.NET
²©¿Í·ÖÀà: ÊÕ»ñ»ýÀÛ
bruce·¢±íÓÚËÄÔ 14 2009, 04:42 ÏÂÎç
        PHPºÍASP.NETÔÚ±¾ÖÊÉÏÊÇÓкܴó²»Í¬µÄ£¬PHP³£±»Ó¦Óõ½¹¦Ä̶ܹ¨µÄÍøÕ¾¹¹½¨ÉÏ£¬ÀýÈçÁôÑÔ°å¡¢ÐÂÎÅ·¢²¼¡¢ÂÛ̳ºÍͶƱµÈ£¬ÕâЩ¹¦ÄÜÊÇ¿ìËÙ½¨Õ¾±Ø±¸µÄ£¬×Ô¶¨Ò帴ÔÓµÄÉÌÒµÁ÷³Ì²»¶à£¬Òò´ËÍø·ÉÏÓÐÐí¶àÏֳɵ ......

PHPÄ£°åÒýÇæSmarty»º´æÓ¦ÓÃ

1£ºsmarty »º´æµÄÅäÖÃ
      
Php´úÂë
$smarty->cache_dir = "/caches/"; //»º´æĿ¼
$smarty->caching = true; //¿ªÆô»º´æ,ΪflaseµÄʱºî»º´æÎÞЧ
$smarty->cache_lifetime = 60; //»º´æʱ¼ä
2:smarty»º´æµÄʹÓúÍÇå³ý
   
Php´úÂë
$smarty->di ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ