phpÖÐswfuploadÉÏ´«²»ÄÜÅжϵǼ״̬.
ÔÚÏîÄ¿Öн«ÔÓеÄÉÏ´«¸ÄΪflash¶àÎļþÉÏ´«,µ«ÊÇÕâÆäÖÐÓöµ½Á˸öºÜÓôÃƵÄÎÊÌâ,µ±ÓÐ×öÓû§ÅжÏʱºò,˵°×Á˾ÍÊÇÅжÏcookieµÄʱºò,»ñÈ¡µ½µÄÖµ×ÜÊÇ¿Õ,µ¼ÖÂ×ÜÊÇÈÏΪÓû§Î´µÇ¼....
ºóÀ´ÉÏÍø²éÁËÏÂ,ÕÒµ½Ò»ÆªÎÄÕÂ:
СÐÄswfupload µÄcookie Bug
ʹÓÃSWFUploadµÄʱºòÒ»¶¨ÒªÐ¡ÐÄcookie
bug£ºÔÚ·ÇIEÄÚºËÄں˵Ää¯ÀÀÆ÷ÏÂʹÓÃSWFUploadÉÏ´«Îļþʱ£¬¸ÃÇëÇó»áºöÂÔ×ÔÉíä¯ÀÀÆ÷ÖеÄËùÓÐcookie
£¬Ö»
ȇ
½«IEä¯ÀÀÆ÷ϵÄÊôÓÚ¸ÃÓòµÄ³Ö¾Ãcookie(persistent cookies)·¢Ë͵½·þÎñ¶Ë£¬·Ç³Ö¾Ãcookie£¨ Session only£©²»»á±»·¢ËÍ¡£Òź¶µÄÊÇ´ËBug²¢·ÇÊÇSWFUploadÄÚ²¿ÊµÏÖµÄÎÊÌ⣨ËùÓеÄ
FlashÉÏ´«¶¼»á´æÔÚ´Ëbug£©£¬¶øÊÇFlashPlayerµÄbug£¬ËùÓÐʹÓÃFileReferenceÀàÉÏ´«Îļþʱ»á´æÔÚ´ËÎÊÌâ¡£ÐÒÔ˵ÄÊÇÎÒÃÇÓÐ
°ì·¨ÈÆ¿ª´ËÏÝÚå¡£
¡¡¡¡¼ÙÉèÒ»ÖÖʹÓó¡¾°£¬Óû§µÇ¼ϵͳÒÔºó£¬ÎÒÃÇ»áÔÚcookieÖÐдÈëÒ»¸ö·Ç³Ö¾ÃµÄkeyÖµÀ´ÅжÏÓû§Éí·Ý¡£µ±Óû§Ê¹ÓÃSWFUploadÉÏ´«Îļþ
µÄʱºò£¬·þÎñ¶Ë³ÌÐòͨ¹ýRequesetÖеÄcookieÀ´ÅжÏÓû§Éí·Ý¡£ÔÚIEÏÂÎÒÃǵŦÄÜÕý³££¬µ«ÔÚFFÏÂÄã»á·¢ÏÖ·þÎñ¶Ë½Å±¾´ÓRequestÖÐÈ¡µ½
µÄcookieÊǿյģ¬Õâ¾ÍÊǺܶàÈËÓöµ½µÄcookie¶ªÊ§¡£Ç°ÃæÎÒÒ²Ìáµ½ÁË·ÇIEÄں˵Ää¯ÀÀÆ÷ºöÂÔÁË×ÔÉíµÄËùÓÐcookie¡£
¡¡¡¡¼ÙÈçÓû§Í¬Ê±ÔÚIEϵǼÁËÁíÍâÒ»¸öÕ˺ţ¬²¢ÇÒÑ¡ÔñÁ˼ÇסÕ˺ţ¬ÄÇôÎÒÃǵijÌÐòÂß¼¿ÉÄÜ»áдÈëÒ»¸ö³Ö¾ÃµÄkeyÖµ¡£È»ºóÓû§ÔÚFFÏÂÉÏ´«ÕÕƬ£¬
·þÎñ¶ËÊǽÓÊܵ½cookieÖеÄkeyÖµÁË£¬µ«Òź¶µÄÊÇ´ËkeyÊÇIEϵǼÕ˺ŵÄcookie£¬Ò»²»Ð¡ÐÄÕâ¾ÍÔì³ÉÁËÓû§Éí·ÝÅжϴíÎóµÄbug£¬AÓû§´«
ÁËÕÅÕÕƬ¾ÓÈ»ÊÇÊôÓÚBÓû§µÄ¡£
¡¡¡¡½â¾ö·½·¨£º
¡¡¡¡ÐÒÔ˵ÄÊÇAS3ÌṩµÄURLRequest¶ÔÏóÀ´°ü×°¿Í»§¶ËÇëÇó£¬ÎÒÃÇ¿ÉÒÔÉÏ´«ÎļþµÄͬʱ£¬¸øÇëÇóÌí¼ÓPOSTÖµ¶Ô¡£Òò´Ëµ±ÎÒÃǵÄÉÏ´«³ÌÐòÐèÒª
ÒÀÀµ¿Í»§¶ËcookieµÄʱºò£¬ÎÒÃÇ¿ÉÒÔÔÚÉÏ´«¿ªÊ¼Ç°Ê¹ÓÃJS½«ÎÒÃÇÐèÒªµÄcookie¶ÁÈ¡³öÀ´£¬È»ºóʹÓÃSWFUploadÌṩµÄ
addPostParam·½·¨Ìí¼Óµ½POSTÖÐÈ¥£¬·þÎñ¶Ë´ÓPOSTÖнÓÊÜËùÐèÒªµÄ"cookie"Öµ¼´¿É£¬²»ÔÙÒÀÀµRequestÖеÄcookie»úÖÆ
¡£
×ܽá:
SWFUpload ÀûÓà flash ×÷ ajax ʽºǫ́ÎļþÉÏ´«£¬
Ìṩǿ´óʼþ¶©ÔÄ»úÖÆ¡£²»ÐÒµÄÊÇ£¬ºÜ¶àʱºò½ÓÊÕÎļþÉÏ´«Êý¾ÝµÄ´úÂëÐèÒª¸ù¾Ýµ±Ç°sessionÀ´½øÐÐȨÏÞ´¦Àí¡£ÔÚIEÖÐûʲôÎÊÌ⣬ÔÚ FireFox
ÖлáÎÞ·¨»ñÈ¡ Session£¬ÔÒòÓ¦¸Ã ÊÇflash´¦ÀícookieµÄ·½Ê½ÓÐËù²»Í¬£¬µ¼ÖÂÔÚ FireFox ÖÐ SWFUpload
ÎÞ·¨postµ±Ç°Óû§µÄcookieÐÅÏ¢µ½·þÎñ¶Ë£¬ÕâµãÔÚ SWFUpload µÄ¹Ù·½ÉÏÓÐ˵
Ã÷
¡£
Ïà¹ØÎĵµ£º
¹ØÓÚÔÚAJAXÖÐGET»ØµÄResponseTextÖÐÎÄÂÒÂëµÄ×î¼ò½â¾ö°ì·¨
//Èç¹û´«ËͲÎÊýÊÇÖ±½Ó¸³ÓèµÄ£¬¾Í»á²úÉúÂÒÂë!
´úÂëÈçÏÂ:
http_request.open("POST",url,true);
http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
http_request.send("action="+strName+"&val="+val); //Èç¹ûvalµÄ ......
Èç¹û¹À¼Æû´í£¬ÔÚ PHP ÓïÑÔÖУ¬Ê¹ÓÃ×î¶àµÄÔËËã·ûºÅµ±ÊýµãÔËËã·ûºÅ“.”£¬Ê¹ÓÃ×î¶àµÄÓï¾äµ±Êý“echo”¡£²»ÄÑÀí½â£¬PHP µÄÄ¿±ê¾ÍÊÇÉú³É³¬Îı¾½Å±¾£¬¶ø³¬Îı¾½Å±¾¾ÍÊÇÓÉ×Ö·û´®×é³ÉµÄ£¬ËùÒÔ PHP ´¦Àí×î¶àµÄÊý¾Ýµ±ÊÇ×Ö·û´®£¬Òò´ËÁ¬½Ó×Ö·û´®µÄµãÔËËã·ûºÍÊä³ö×Ö·û´®µÄÓï¾ä“echo&rdqu ......
phpÏÂÔØ£º
http://windows.php.net/download/
Ñ¡Ôñ
VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
VC6 x86´ú±í Apache HTTP Server (httpd) 2.2.15 ºÍPHP½áºÏ
apacheÏÂÔØ£º
http://httpd.apache.org/download.cgi#apache22
Ñ¡Ôñ2.2.15
httpd-2.2.15-win32-x86-no_ssl.msi [PGP] [MD5] [SHA1]
apache services 2.2Ð ......
Mini2SAE
£º
Mini
--ºËÐÄÎļþÖ»ÓÐ15K
£¬
2
--to£¬
SAE
--Sina App Engine(ÐÂÀËÓ¦ÓÃÒýÇæ)
»ùÓÚSAE¿ìËÙ¡¢¼òµ¥µÄ¡¢ÇáÁ¿¼¶PHP¿ª·¢¿ò¼Ü……
×ñÑBSD¿ªÔ´ÐÒéµÄÃâ·Ñ¿ªÔ´¿ò¼Ü……
Ϊ²ÉÓ ......
function multi($num, $perpage, $curpage, $mpurl) {
$multipage = '';
$mpurl .= strpos($mpurl, '?') ? '&' : '?';
if($num > $perpage) {
$page = 10;
$offset = 5;
$pages = @ceil($num / $perpage);
if($pag ......