phpÉÏ´«ÎÊÌ⣬¼±°¡
php ÉÏ´«Îļþʱ£¬ÎªÊ²Ã´µ±Îļþ´óÓÚ2mʱ£¬¾Í»á³öÏÖfail to write to disk
µ«ÊÇphp.iniÀïÃæpost_max_size=128M,upload_max_filesize=512M£¬¶¼ÒѾ×ã¹»ÁË£¬ÎªÊ²Ã´»á³öÏÖÕâÑùµÄÇé¿öÄØ
ÎÒphpÉÏ´«ÎļþÊÇÓÃajaxuploadfile,½øÐÐÒì²½£¬¶à¸öÎļþ£¬Ò»¸öÒ»¸öµØÉÏ´«µÄ¡£
1¡¢ÓÃphpinfo²é¿´²ÎÊýÊÇ·ñÕýÈ·
2¡¢Ìû³ö¿Í»§¶ËÉÏ´«´úÂë
ʲô²ÎÊý°¡
ÉÏ´«´úÂëÊÇ£º
<?php
//session_start();
ini_set('memory_limit', '512M');
$error = "";
$msg = "";
$i = $_GET['i'];
$_SESSION['optFormat'] = $_GET['optFormat'];
$fileElementName = "fileToUpload".$i;
if(!empty($_FILES[$fileElementName]['error']))
{
switch($_FILES[$fileElementName]['error'])
{
case '1':
$error = 'The uploaded file exceeds the upload_max_filesize directive in php.ini';
break;
case '2':
$error = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form';
break;
case '3':
$error = 'The uploaded file was only partially uploaded';
break;
case '4':
$error = 'No file was uploaded.';
break;
case '6':
$error = 'Missing a temporary folder';
break;
case '7'
Ïà¹ØÎÊ´ð£º
¸÷λ´óÏÀ
ÇóÒ»¶Îphp´úÂë
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ  ......
<!--¹ºÂòÊýÁ¿-->
<div class='buyinfo'>
<table width='auto'>
<tr>
<td><span>¹ºÂòÊýÁ¿£º</sp ......
´úÂëÈçÏ£º
function uc_get_user($username, $isuid=0) {
$return = call_user_func(UC_API_FUNC, 'user', 'get_user', array('username'=>$username, 'isuid'=>$isuid));
return UC_CONNECT == 'mysql' ......
ÕÒÈË¿ª·¢PHP³é½±³ÌÐò
ÓÐÒâÏòÕß¼ÓÎÒ
251414041
°ï¶¥ÁË£¡
結貼ÂÊÌ«µÍ
°ï¶¥¡£
How much?
¶¥
4Â¥µÄÎÊÁË£¬¶àÉÙÇ®
duoshao
°¥.............
Äã²»ÊÇÈÃÎÒ×öÁËÂ𣿡·¡·¡·Ôõà ......