PerlºÍPHPÔÚLinuxÏÂÎÞ·¨mkdir 777µÄÎÊÌâ
Ê×ÏÈPerl mkdir µÄÓï·¨ÊÇ£º
1.mkdir('dir', ´ú±í¾Åλ¶þ½øÖÆÊý×ÖµÄÊ®½øÖÆÖµ)
ÉèÖÃ775£¬Ôò¸ÃֵΪʮ½øÖƵÄ509£¬¼´¶þ½øÖƵÄ111111101
´ËÊýÖµ²»ÄÜÉèÖÃΪ111111111¼´Ê®½øÖƵÄ511¼´777¡£
2.mkdir('dir', 0³£¼ûunix3λȨÏÞ)
¿ÉÒÔÉèÖÃ777¡£
È»ºóÔÚlinuxÏÂʱ£¬ÓÉÓÚumaskµÄÔÒò£¬Ö»ÄÜÉèÖÃΪ755¡£
ÒòΪ´´½¨ÎļþʱµÄȨÏÞÊÇumaskºÍmodeµÄ&ÔËËãµÄÖµ¡£
¾ßÌåÔÒò²Î¼û£ºhttp://www.perlmonks.org/?node_id=543251
¿ÉÓÃÏÂÁдúÂëÑéÖ¤£º
$ perl -e'printf "umask: %04o\n", umask; printf "mode: %04o\n", 0777; +printf "masked mode: %04o\n", 0777 & ~umask'
umask: 0022
mode: 0777
masked mode: 0755
½â¾ö°ì·¨ÈçÏ£º
1.¿ÉÒÔÉèÖÃumaskʱ£¬ÈçÏ´úÂ룺
my $old_umask = umask;
umask 0;
mkdir('test_dir', 0777);
umask $old_umask;
2.»òÕß´´½¨Íêºó¸³ÓèȨÏÞ£º
chmod test_dir, 777
Ïà¹ØÎĵµ£º
linuxϵÄÈí¼þRAIDÖ§³ÖRAID¼¶±ð0,1,4,5,6£¬½ñÌìÌرð²âÊÔÒ»ÏÂRAID6¡£
²½ÖèÒ»£º×¼±¸·ÖÇø
·ÖÇøÇé¿öÈçÏ£¬¾ßÌåÈçºÎ·ÖÇø¾Í²»½éÉÜÁË¡£
/dev/hdb5 5240 5252 1043 ......
1.¶¨Î»£¬Ã÷È··½Ïò¡£
2.¶¨Î»ºó¾ÍÈ¥³¢ÊÔ¡£²»ÒªÔÙ̸Äܲ»ÄÜ×ö¡£
ÒÔÉÏÊǺÃÓѸøÎҵĽ¨Ò飬ºÜÖпϡ£
µÚÒ»µã£¬ÎÒÐèҪȷ¶¨×Ô¼º½ñºó·¢Õ¹µÄ·½Ïò£¬²»ÄÜÔÙÏñÏÖÔÚÕâÑùʲô¶¼È¥Ñ§£¬½á¹ûʲô¶¼Ò»ÎÞËù³É¡£
µÚ¶þµã£¬Öƶ¨¼Æ»®ºó¾ÍÓ¦¸ÃÂíÉÏ×ÅÊÖÈ¥Ö´ÐУ¬Óöµ½´ìÕÛʱ²»Òª¼±×Å˵£¬ÎÒ°¾Ò¹Á˶à¾Ã¶à¾Ã£¬»¹ÊÇûѧ»á°¡£¬¶øÊǾ²ÐÄ·ÖÎö£¬È»ºó¶ÔÖ¢ÏÂÒ©£¬ ......
header
(PHP 3, PHP 4, PHP 5)
header -- ·¢ËÍÒ»¸öÔʼ HTTP ±êÍ·
˵Ã÷
void header ( string string [, bool replace [, int http_response_code]] )
header() º¯ÊýÓÃÀ´·¢ËÍÒ»¸öÔʼ HTTP ±êÍ·¡£ÓÐ¹Ø HTTP ±êÍ·µÄ¸ü¶àÄÚÈݼû HTTP/1.1 ¹æ·¶¡£
¿ÉÑ¡²ÎÊý replace Ö¸Ã÷ÊÇÌæ»»µôÇ°Ò»ÌõÀàËƵıêÍ·»¹ÊÇÔö¼ÓÒ»ÌõÏàͬÀàÐ͵ ......
__LINE__ ÎļþÖеĵ±Ç°Ðкš£
__FILE__ ÎļþµÄÍêÕû·¾¶ºÍÎļþÃû¡£Èç¹ûÓÃÔÚ±»°üº¬ÎļþÖУ¬Ôò·µ»Ø±»°üº¬µÄÎļþÃû¡£×Ô PHP 4.0.2 Æð£¬__FILE__
×ÜÊÇ°üº¬Ò»¸ö¾ø¶Ô·¾¶£¨Èç¹ûÊÇ·ûºÅÁ¬½Ó£¬ÔòÊǽâÎöºóµÄ¾ø¶Ô·¾¶£©£¬¶øÔÚ´Ë֮ǰµÄ°æ±¾ÓÐʱ»á°üº¬Ò»¸öÏà¶Ô·¾¶¡£
__DIR__ ÎļþËùÔÚµÄĿ¼¡£Èç¹ûÓÃÔÚ±»°üÀ¨ÎļþÖУ¬Ôò· ......
memcache::debug
bool memcache_debug ( bool $on_off )
˵Ã÷£º
¿ØÖƵ÷ÊÔ¹¦ÄÜ£¬Ç°ÌáÊÇphpÔÚ±àÒëµÄʱºòʹÓÃÁË-enable-debugÑ¡Ï·ñÔòÕâ¸öº¯Êý²»»áÓÐ×÷Óá£
²ÎÊý£º
$on_off£ºtrue±íʾ¿ªÆôµ÷ÊÔ£¬false±íʾ¹Ø±Õµ÷ÊÔ
·µ»ØÖµ£º
Èç¹ûphpÔÚ±àÒëµÄʱºòʹÓÃÁË-enable-debugÑ¡Ï·µ»Øtrue£¬·ñÔò·µ»Øfalse
Memcache::decremen ......