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

phpÎļþÉÏ´«³öÀ´µÄ¼¸¸öСÎÊÌâ - PHP / ¿ªÔ´×ÊÔ´

ÎÒÓÃphpÎļþÉÏ´«
ʹÓÃmove_upload_file()£¬
Ò»ÉÏ´«Îļþ¾Í³ö´íÁË£¬
³ö´íµÄÐÅÏ¢ÊÇ
Warning: move_uploaded_file(F:\Server\www\): failed to open stream: Permission denied in F:\Server\www\eoool\finish\uploadimg.php on line 76 
Warning: move_uploaded_file(): Unable to move 'E:\WINDOWS\TEMP\php34.tmp' to 'F:\Server\www' in F:\Server\www\eoool\finish\uploadimg.php on line 76 Îļþ *****(****×Ö½Ú) ÉÏ´«Ê§°Ü!
ÇëÎÊÕâÊÇΪʲô£¿
Warning: move_uploaded_file(F:\Server\www\): failed to open stream: Permission denied 
¾¯¸æ£ºmove_uploaded_file£¨Å®£º\·þÎñÆ÷\µÄwww \£©£ºÎ´ÄÜ´ò¿ªÁ÷£ºÈ¨ÏÞ±»¾Ü¾ø

Õâ¸ö¶¼²»ÐУ¬ÄǾÍÊÇȨÏÞÎÊÌâÁË¡£

PHP code:

if(function_exists("move_uploaded_file") && @move_uploaded_file($up_file,$savefilename)){
@chmod($savefilename,0777);
}elseif(@copy($up_file,$savefilename)){
@chmod($savefilename,0777);
}elseif(is_readable($up_file)){
writeover($savefilename,readover($up_file));
if(file_exists($savefilename)){
@chmod($savefilename,0777);
}
}

function writeover($filename,$data,$method="rb+",$iflock=1,$check=1,$chmod=1){
touch($filename);
$handle = fopen($filename,$method);
$iflock && flock($handle,LOCK_EX);
fwrite($handle,$data);
$method=="rb+" && ftruncate($handle,strlen($data));
f


Ïà¹ØÎÊ´ð£º

php »ñÈ¡Ò³ÃæÄÚÈÝ - PHP / »ù´¡±à³Ì

Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......

php session ¶ªÊ§ - PHP / »ù´¡±à³Ì

ÔÚfirefoxä¯ÀÀÆ÷ÏÂÕý³£µÇ½£¬µ«ÔÚIE ä¯ÀÀÆ÷ÏÂÎÞ·¨µÇ½£¬Ã¿´Î¶¼»áÖØÐÂÉú³ÉÒ»¸ösession,Ô­À´µÄÄÚÈݻᶪʧ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£Ôõô»ØÊÂ......
¾ßÌåÇé¿ö£¿²Â²â¿ÉÄÜÊÇÄã±¾»úIEµÄcookie±»½ûÓÃÁË°É£¬¿ÉÒÔ¿´¿´

cookie Æ ......

phpÎļþµ÷ÓÃjsÎļþÀïµÄ·½·¨£¿ - PHP / »ù´¡±à³Ì

¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
»òÕßÔÚjsÎļþÀïµ÷ÓÃphpÎļþдµÄseesion£¿
PHP¸ÕÈëÃÅѧϰ,ÓÑÇ鶥һ¸ö


¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
//echo '<script>alert("ok");< ......

phpÔõôÌ滻ǰÃæµÚÒ»¸ö×Ö·û - PHP / »ù´¡±à³Ì

phpÔõôÌ滻ǰÃæµÚÒ»¸ö¡°$¡±
Äã²»寫Çå³þ,讓ÈËÔõ麼幫Äã...
¸ß¹ÀÎÒµÄ漢語ˮƽ...»òÄãµÄ±í達ÄÜÁ¦

ÒýÓÃ
Äã²»寫Çå³þ,讓ÈËÔõ麼幫Äã...
¸ß¹ÀÎÒµ ......

Ñ°ÕÒÒ»·ÝPHP¼æÖ°×ö - PHP / Framework

ÄúºÃ£¬ÓÐÄǼҹ«Ë¾ÐèÒª¼æÖ°PHP³ÌÐòÔ±¸úÍøÒ³div+cssÂ𣿱¾ÈËÒ»Äê¶àµÄ¹¤×÷¾­Ñ飬Èç¹ûÓÐÐèÒªÇëÓëÎÒÁªÏµ£¬QQ£º147600323


End_rbody_65353772//-->
¸Ã»Ø¸´ÓÚ2010-05-12 09:32:05±»¹ÜÀíԱɾ³ý


¶ÔÎÒÓÐÓÃ[ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ