phpºÍjava¹ØÓÚĿ¼Ê÷£¨ÁгöijһĿ¼ÏÂÎļþ½á¹¹£©
javaµÄд·¨
/**
*
* @param location
* @param nameList±£´æ½á¹ûµÄ£¡
*/
public void listDict(String location, List<String> nameList) {
File fileList = new File(location);
if (fileList.isDirectory()) {
File[] files = fileList.listFiles();
for (File f : files) {
if (f.isDirectory()) {
listDict(f.getPath(), nameList); // µÝ¹é
} else {
String fullpath = f.getPath();
String name = f.getName();
String ext = name.substring(name.indexOf(".") + 1); // ÎļþÀ©Õ¹Ãû
if ("dic".equalsIgnoreCase(ext)) { // ¹ýÂËÖ»ÒªdicµÄÎļþ
nameList.add(fullpath);
}
}
}
}
}
phpµÄд·¨
´ý²¹³ä
Ïà¹ØÎĵµ£º
½ñÌìÎÒÔÚÌýÕÅТÏéÀÏʦ½²µÄJava¼ÓÇ¿ÊÓƵ£¬ÕÅÀÏʦ˵£ºJava»ù´¡¼Óǿ֪ʶ´ú±íÁËÒ»ÖÖjava¹¦Á¦£¬Ò²´ú±íÁËÄãµÄѧϰÄÜÁ¦£¬ÄÜÕÆÎÕÕâЩ֪ʶ˵Ã÷ÄãÒÔÇ°µÄѧϰÄÜÁ¦²»´í£¬¾ß±¸ÕâЩ֪ʶ£¬Ò²ËµÃ÷ÄãδÀ´ÕÆÎÕÐÂ֪ʶµÄDZÄܲ»´í¡£ÎÒ¾õµÃÕÅÀÏʦ˵µÄÓеÀÀí£¬ÎÒµÄJava»ù´¡²»ÊǺܺã¬Òò´Ë£¬ÎÒÒªºÃºÃѧѧÕÅÀÏʦ½²µÄ»ù´¡¼ÓÇ¿ÊÓƵ¡£
Ê×ÏÈÕÅÀÏ ......
ת×Ô±¾È˸öÈËÍøÕ¾ ¡¾PHP̽·Õß
¡¿£¬»¶Ó¸÷λ·ÃÎÊÕ¾µã£¡
ÔÚʹÓÃPHP»ñÈ¡ä¯ÀÀÆ÷ÐÅϢʱ£¬Í¨³£ÓÐÁ½ÖÖ·½Ê½£º
µÚÒ»ÖÖÊÇ£ºÊ¹ÓÃ$_SERVER[HTTP_USER_AGENT]Ñ¡Ïî
´Ë·½Ê½»ñÈ¡µÄÊǸñʽ²»¹æÔòµÄÊý¾Ý£¬Èç
Mozilla/4.0 (compatible; MSIE 8.0
; Windows NT 5.1; Trident/4.0; GTB6; CIBA; .NET CLR 2.0.50727)
Mozilla/5.0 (Windows ......
¾¡Á¿Ê¹Óõ¥ÒýºÅ¶ø²»ÊÇË«ÒýºÅ¡£
¾¡Á¿Ê¹ÓôøÌõ¼þµÄinclude¶ø²»ÊÇrequire¡£
¾¡Á¿Ê¹ÓÃecho¶ø²»ÊÇprint¡£
¾¡Á¿Ê¹ÓÃÄÚǶµÄHTML¶ø²»ÊÇecho¡£
¾¡Á¿Ê¹ÓÃstr£replace()¶ø²»ÊÇereg£replace()¡£
¾¡Á¿sql²»ÓÃÁªºÏ²éѯ¡£
......
strtotimeº¯ÊýÊÇÒ»¸öºÜºÃµÄº¯Êý,Áé»îµÄÔËÓÃËü,»á¸øÄãµÄ¹¤×÷´øÀ´²»ÉÙ·½±ã.µ«PHPµÄÊÖ²áÖÐÈ´¶Ô´Ëº¯ÊýµÄ²ÎÊýû×÷Ì«¶à½éÉÜ,¶ÔЩº¯ÊýµÄÆäËû½éÉÜÒ²·Ç³£ÉÙ¡£
ÏÈ¿´ÊÖ²á½éÉÜ£º
strtotime — ½«ÈκÎÓ¢ÎÄÎı¾µÄÈÕÆÚʱ¼äÃèÊö½âÎöΪ Unix ʱ¼ä´Á
¸ñʽ£ºint strtotime ( string $time [, int $now ] )
¡¡¡¡±¾º¯ÊýÔ¤ÆÚ½ÓÊÜÒ ......