linux ȨÏÞÉèÖõÄÎÊÌâ - PHP / »ù´¡±à³Ì
ÔÚubuntuÉϴÁË·þÎñÆ÷£¬¸ùĿ¼Ϊ/var/www£¬Ê¹ÓÃphp½Å±¾ÔÚ/var/www/htmlÎļþ¼ÐÏÂÉú³ÉÁËÎļþ¼ÐºÍÎļþ£¬Éú³ÉµÄ¸ñʽÊÇ/var/www/html/123456/sss.html£¬Éú³Éºó²é¿´htmlÎļþ¼ÐµÄȨÏÞÊÇwww-data£¬ÎÒÖ´ÐÐphpµÄɾ³ý½Å±¾µÄʱºò½Å±¾Ò²²»Ìáʾ´íÎó£¬Ö´ÐÐÍê½Å±¾ºó¿´htmlÎļþ¼Ð£¬´´½¨µÄÎļþ²¢Ã»Óб»É¾³ý¡£ÔÚϵͳÀïÃæɾ³ýҲɾ³ý²»µô£¬ÌáʾûÓÐȨÏÞ£¬ÎÒÓÃsudo chmod 777 /var/www/html -R ÉèÖÃȨÏÞºóϵͳÀïÃæ¿ÉÒÔɾ³ý£¬µ«ÊÇphp½Å±¾Ò»Ñùɾ³ý²»µô£¬ÔÙ´ÎÓÃphp½Å±¾Éú³ÉÎļþ£¬È¨ÏÞÒÀÈ»ÊÇwww-data£¨Ç°ÃæÒѾÓÃsudo chmod 777 /var/www/html -RÉèÖùýȨÏÞ£©ÎÞ·¨É¾³ýÎļþ¡£
ÎÒµÚÒ»´ÎÓÃlinuxϵͳ£¬¶Ôϵͳ²»ÊìϤ£¬Ï£Íû¸ßÊÖ°ïæ¸ø¸ö½â¾ö°ì·¨£¬²»ÒªËµÈÃÎÒÏÈȥѧϰʹÓÃϵͳ£¬¹¤×÷ÐèÒª£¬Ñ§Ï°¿ÉÒÔÒÔºóѧϰ£¬ÏÖÔÚÒª¾¡¿ì½â¾öÕâ¸öÎÊÌ⣬³ÌÐòÔÚwindowsʹÓÃÒ»ÇÐÕý³£¡£Â·¹ýµÄ¸ßÊÖ°ï°ï棬ллÁË¡£
Éú³ÉÎļþʱ¸øÓè×㹻ȨÏÞ
PHP code:
<?php
mkdir ("/path/to/my/dir", 0777);
?>
ÉèÖÃÁË£¬ÒÀÈ»²»ÐÐ
¸ßÊÖ¹ýÀ´¿´¿´°¡
ÎÒ¼áÐźÃÐÄÈËÒ»¶¨»áµ½À´
º¯ÊýmkdirÓÐÁ½¸ö²ÎÊý£¬Ä¿Â¼Â·¾¶ºÍ·ÃÎÊȨÏÞ
Àýmkdir('/tmp/test',0777)
È»ºóÒªµÃµ½µÄȨÏÞÂ룬²»Ò»¶¨ÊÇÉϱßÉ趨µÄ£¬µ±Ç°ÏµÍ³µÄumask½«»áÓëÉ趨µÄÖµ¡®Ó롯£¬ÕâÑù×Ó²ÅÊÇÕæÕýµÄȨÏÞÂ룬ÀýÈ磬Èç¹ûumaskΪ022£¬ÄÇÂëÉϱߵõ½µÄȨȨÏÞÂëΪ0755,ûÓÐдµÄȨÏÞ
ËùÒÔÈç¹ûÎÒÃÇÏëÒªÕæÕýµÄµÃµ½0777µÄȨÏÞ£¬´úÂë
<?php
$oldumask=umask(0);
mkdir('test',0777);
umask($oldumask);
?>
Ò»°ãÀ´½²ÓÃphpÉú³ÉµÄÎļþÓû§ºÍ×鶼ÊÇwww-data
¸øÁË×ã¹»µÄȨÏÞÓ¦¸ÃÊÇ¿ÉÒ
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
Ä¿Ç°ÔÚÎ人ÕÒ¹¤×÷
·¢Ïִ󲿷ֹ«Ë¾ÎÞÍâºõÁ½ÖÖ
Ò»ÖÖÊǸãÍâ°üµÄ ÒªÓÃzend,cakephpµÈÍâ¹ú¿ò¼Ü
»¹ÒªÊìϤÍâ¹ú¿ªÔ´ÏµÍ³
Ò»ÖÖ¹úÄÚµÄ ÎÞÍâºõ dedecms ecshop shopexÕ⼸ÖÖ¸ÄÕ¾µã ÓеĹ«Ë¾ÉõÖÁÄÃһЩ¸üСµÄϵͳ¸ ......
±±¾©2ÄêPHP¾ÑéÇó¼æÖ°
½Ó·Ö
·¹ý½Ó·Ö£¡.¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
jf~~~~~~~~~~~~~~Ö§³Ö
ßÀ¡£¡£ÎÒÃÇÐèÒª¼æÖ°£¬¿ÉÊÇÔõôÁªÏµÄãѽ£¿
¶¥¡£¡£¡£ »Ø¸´ÄÚÈÝ »Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡
º¼ÖÝÄãÈ¥²»È¥°¡ ¡£¡£¡£¡£¡ ......
¾ÍÊÇÎÒÔÚij¸öÍøÒ³²åÈëÁËÒ»¸öphpÁ´½Ó
ÎÒÏë»ñµÃÄǸöÍøÖ·µØÖ·µØÖ·À¸µÄurl¶øÇÒÒªÊä³ötxt¸ñʽ»òÆäËû¸ñʽ¡£Ó¦¸ÃÈçºÎʵÏÖ£¿£¿£¿
»¹ÓоÍÊÇдÈëµ½.txt ÎļþÀÔõôȥÅжÏÊÇ·ñÖظ´¡£
$_sever[request_uri]
Â¥Ö÷¸øµã·Ö ......
Fatal error: Call to undefined function language_attributes() in C:\xampp\htdocs\header.php on line 2
´íÎóÖÐ˵µÄ·½·¨Ã»Óж¨Òå ÊÇʲôÔÒò£¿
php¸ßÊÖÃÇÄÜ°ï°ïÎÒÂð£¿
ÓпÉÄÜÄãËùÓõÄÒ»¸ö·½·¨»òÕßÊôÐÔÊÇÊôÓÚ ......