PHPÉÏ´«Í¼Æ¬Îļþ´óСµÄ200KÏÞÖÆ¡£ - PHP / »ù´¡±à³Ì
ÒѾÐÞ¸ÄÁË
£¨1£©PHP.iniÖеÄpost_max_size ºÍupload_max_filesize£¬²¢ÇÒ±£Ö¤ÁËÇ°Õß´óÓÚºóÕß
£¨2£©Windows\System32\inetsvr\MetaBase.xmlÖеÄAspMaxRequestEntityAllowed
ÐÞ¸ÄÍê±Ïºó£¬ÖØÐÂÆô¶¯ÁËIIS·þÎñ£¬²¢ÇÒ¼ÆËã»úÒ²½øÐÐÁËÖØÆô£¬¿ÉÉÏ´«µÄÎļþ´óС£¬²¢ÇÒºóÃ滹³öÏÖÁËÖ»ÄÜÉÏ´«gif,jpg»òpngͼƬ¸ñʽ¡£
µ½µ×ÊÇʲôÎÊÌâÄØ£¿
ÄÄλÓöµ½¹ý£¬ÊÇÒ»¸ömediproµÄϵͳ¡£
ÕâÊÇÔÚ³ÌÐòÀï×öÁËÏÞÖÆ
Äã¿´¿´´úÂë »òÊÇ°Ñ´úÂëÌù³öÀ´¿´¿´
echo $strNewsAddImg;
echo "</td>\r\n <td height=\"30\" class=con> \r\n <table border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr> \r\n <td> \r\n <input type=\"file\" name=\"jpg\" class=input style='WIDTH: 399;font-size:12px;'>\r\n </td>\r\n <td width=\"50\" align=\"center\">";
if ( $src == "" )
{
echo "<img src=images/noimage.gif >";
}
else
{
echo "<img src=images/image.gif onClick=\"StDv.style.visibility='visible'\">";
}
Õâ¸öÓ¦¸ÃÊÇÉÏ´«Í¼Æ¬²¿·ÖµÄÖ÷Òª´úÂë°É£¿
ÐÞ¸Äphp¡£ini ¼´¿É
Ò»°ãÇé¿öÏ£¬PHPĬÈÏÉÏ´«µÄ¸½¼þ´óСΪ2M(upload_max_filesize), Õâ¸öÔ¶´óÓÚ200K.
½¨Òé×Ðϸ¼ì²éһϣ¬Í¼Æ¬ÉÏ´«²¿·ÖµÄ´úÂë´¦Àí
Ó¦¸ÃÊÇÄãÔÚ³ÌÐòÀï×öÁËÏÞÖÆ£¬ÉϱßÌùµ
Ïà¹ØÎÊ´ð£º
¸÷λ´óÏÀ
ÇóÒ»¶Îphp´úÂë
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ  ......
µ±ÎÒÓÃPHPÏÂÔØ·þÎñÆ÷ÉϵÄwavÒôÀÖÎļþʱ£¬wavÎļþÄܹ»ÏÂÔØÏÂÀ´£¬²¢ÇÒ´óСÏàͬ£¬µ«ÊÇÈ´²»Äܲ¥·Å¡£µ«ÈôÊÇͨ¹ýÎļþ·þÎñÆ÷¿½±´µ½±¾µØ£¬ÊÇ¿ÉÒÔ²¥·Å¸ÃÎļþµÄ£¬²»ÖªµÀÈçºÎÔÒò¡£Í¨¹ýMD5sum¼ì²â£¬¸ÃÎļþÏÂÔغóÒѸı䣬²»ÖªµÀÔ ......
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
ÕÒÈË¿ª·¢PHP³é½±³ÌÐò
ÓÐÒâÏòÕß¼ÓÎÒ
251414041
°ï¶¥ÁË£¡
結貼ÂÊÌ«µÍ
°ï¶¥¡£
How much?
¶¥
4Â¥µÄÎÊÁË£¬¶àÉÙÇ®
duoshao
°¥.............
Äã²»ÊÇÈÃÎÒ×öÁËÂ𣿡·¡·¡·Ôõà ......