phpÉú³ÉËæ»úÃÜÂëµÄ¼¸ÖÖ·½·¨
ʹÓÃPHP¿ª·¢Ó¦ÓóÌÐò£¬ÓÈÆäÊÇÍøÕ¾³ÌÐò£¬³£³£ÐèÒªÉú³ÉËæ»úÃÜÂ룬ÈçÓû§×¢²áÉú³ÉËæ»úÃÜÂ룬Óû§ÖØÖÃÃÜÂëÒ²ÐèÒªÉú³ÉÒ»¸öËæ»úµÄÃÜÂë¡£Ëæ»úÃÜÂëÒ²¾ÍÊÇÒ»´®¹Ì¶¨³¤¶ÈµÄ×Ö·û´®£¬ÕâÀïÎÒÊÕ¼¯ÕûÀíÁ˼¸ÖÖÉú³ÉËæ»ú×Ö·û´®µÄ·½·¨£¬ÒÔ¹©´ó¼Ò²Î¿¼¡£
·½·¨Ò»£º
1¡¢ÔÚ 33 ¨C 126 ÖÐÉú³ÉÒ»¸öËæ»úÕûÊý£¬Èç 35£¬
2¡¢½« 35 ת»»³É¶ÔÓ¦µÄASCIIÂë×Ö·û£¬Èç 35 ¶ÔÓ¦ #
3¡¢Öظ´ÒÔÉÏ 1¡¢2 ²½Öè n ´Î£¬Á¬½Ó³É n λµÄÃÜÂë
¸ÃËã·¨Ö÷ÒªÓõ½ÁËÁ½¸öº¯Êý£¬mt_rand ( int $min , int $max )º¯ÊýÓÃÓÚÉú³ÉËæ»úÕûÊý£¬ÆäÖÐ $min ¨C $max Ϊ ASCII ÂëµÄ·¶Î§£¬ÕâÀïÈ¡ 33 -126 £¬¿ÉÒÔ¸ù¾ÝÐèÒªµ÷Õû·¶Î§£¬ÈçASCIIÂë±íÖÐ 97 ¨C 122 λ¶ÔÓ¦ a ¨C z µÄÓ¢ÎÄ×Öĸ£¬¾ßÌå¿É²Î¿¼ ASCIIÂë±í£» chr ( int $ascii )º¯ÊýÓÃÓÚ½«¶ÔÓ¦ÕûÊý $ascii ת»»³É¶ÔÓ¦µÄ×Ö·û¡£
function create_password($pw_length = 8) { $randpwd = ''; for ($i = 0; $i < $pw_length; $i++) { $randpwd .= chr(mt_rand(33, 126)); } return $randpwd; } // µ÷Óøú¯Êý£¬´«µÝ³¤¶È²ÎÊý$pw_length = 6 echo create_password(6);
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ