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
Ïà¹ØÎÊ´ð£º
1¡¢ÊDz»ÊÇPHPÖÐÖ»ÄÜʹÓÃmysql_query("update user_aa set money=money2-".$bpanmm." where uid=".$userppp);¸üÐÂÊý¾Ý£¿£¿£¿
2¡¢PHP¸üÐÂmysql_fetch_row($res)Óëmysql_fetch_array($res)ÖеÄÊý¾ ......
ʹÓÃÍøÉ쵀 phpexcelreader À࣬½«ÐéÄâ»úÄÚ´æµ÷ÕûÖµ1024M£¬excelÌå»ýΪ224M£¬ÓÃphpexcelreader¶ÁÈ¡µÄʱºòÄÚ´æ¸ù±¾²»¹»Óã¬Çë½Ì¸÷λÓÐʲôºÃµÄ·½·¨¶ÁÈ¡ÕâÖÖ´óÌå»ýµÄ excel ÎʼÛô£¿
excelÌå»ýΪ224M
·þÁË¡£¡£¡£ ......
ÔÚPHPÖÐÓÐûÓÐÏñASPÖеļǼ¼¯(ADODB.Recordset )ÕâÖÖÀàÐ͵ĶÔÏó?¿É²»¿ÉÒÔÏñÔÚASPÖÐÒ»Ñùͨ¹ý¼Ç¼¼¯À´¸üÐÂÊý¾Ý¿â.ÈçÏÂÃæÕâÑù.
VBScript code:
set rs=server.createobject("adodb.recordset")
......
ÊÇÓñðÈËдµÄÀà×öµÄ£¬»¹ÔʱÌáʾYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO admin(seq,passwd,type,n ......