Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¸újspÖ®¼äsession¹²ÏíµÄÎÊÌâ - Java / Web ¿ª·¢

×î½üÒ»¸öÏîÄ¿ÖÐÓöµ½Ò»¸öÎÊÌ⣺ÔÚÔ­ÓеÄÒ»Ì×ϵͳÖÐ(php¿ª·¢)Ìí¼ÓһЩС¹¦ÄÜ(jsp¿ª·¢)£¬Ô­À´Óû§ÏµÍ³¶¼ÊÇphp¿ª·¢µÄ£¬ÎÒÈçºÎÔÚjsp¿ª·¢µÄ¹¦ÄÜÖÐ×öµ½Óû§ÐÅÏ¢sessionͬ²½ÄØ£¿ ÓÐÈËÊÇ·ñÓÐ×ö¹ýÀàÒÔÏîÄ¿£¬ÏëÌýÌý´ó¼ÒµÄ¿´·¨
......

PHPÈçºÎÉèÖÃÒ³Ã滺´æ1ÐÇÆÚ - PHP / »ù´¡±à³Ì

ÈçÌ⣬Ôõôд¸öheadÍ·²¿ ÈÃÒ³Ã滺´æ1ÐÇÆÚ¡£
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Äã°ÑÀïÃæµÄʱ¼ä£¬¸Ä³Éµ±Ç°Ê±¼ä¼ÓÉÏÒ»¸öÐÇÆÚ
¼ÇµÃҪת»»³Égmtʱ¼ä

ÎÒÕâÑùдµÄ ²»ÖªµÀÐв»ÐС£
Ò»¸öÐ ......

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

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


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

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

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

ÒýÓÃ
Äã²»寫Çå³þ,讓ÈËÔõ麼幫Äã...
¸ß¹ÀÎÒµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ