½â¾öPHPÄÚ´æÒç³öµÄÎÊÌâ
Allowed memory size of 33554432 bytes exhausted (tried to allocate 4554 bytes)
ÓÐʱºòÎÒÃÇÔÚÔËÐÐphp³ÌÐòµÄʱºò»á·¢ÏÖ Fatal Error: Out of memory ÕâÑùµÄÌáʾ¡£ ÕâÓпÉÄÜÊdzÌÐòÖÐÓõ½ÁË´óÁ¿Á˱äÁ¿ºÍ¶ÔÏ󣬵¼Ö·ÖÅäµÄÄÚ´æ²»¹»Óá£ÎÒ¾ÍÓöµ½ÕâÑùÒ»¸ö´íÎóÔõô¸ÄÒ²¸Ä²»ÁË£¬ºóÀ´ÉÏÍø²éÁËһЩ×ÊÁÏ£¬¿ÉÊÇÐÞ¸ÄÁËphp.iniÎļþÀïµÄmemory_limit²ÎÊý£¬¿ÉÊÇÎÞÂÛÎÒÔõô¸Ä»¹ÊÇÓÐÕâ¸ö´íÎóÌáʾ£¬ÌرðÓôÃÆ£¡ºóÀ´ÎÒʵÔÚûÓа취ÁË£¬¾ÍÔÚQQȺÀïÃæÇóÖú£¬ÓÐÈ˸æËßÎÒÔÚÎҵijÌÐò´úÂëÖмÓÈë“init_set("memory_limit", "128M");”ÕâÐдúÂë¾Í¿ÉÒÔÁË£¬ÓÚÊÇÎÒÊÔÁËһϣ¬»¹ÕæµÄÐÐÁË¡£ÏÖÔÚÎÒ°Ñ×Ô¼º½â¾öÕâ¸öÎÊÌâµÄÁ½ÖÖ°ì·¨·ÖÏí¸ø´ó¼Ò£¬Ï£ÍûÄܰﵽºÍÎÒÒ»ÑùÓöµ½ÀàËÆÎÊÌâµÄÈËÃÇ¡£
·½·¨Ò»£ºÎÒÃÇ¿ÉÒÔÔÚphp.iniÎļþÖаÑmemory_limit²ÎÊýĬÈϵÄ128MÐÞ¸ÄΪ256M»òÕ߸ü´ó£º
memory_limit = 128M
·½·¨¶þ£ºÈç¹ûÊÇÐéÄâÖ÷»ú£¬ÎÒÃÇ¿ÉÒÔÔÚ³ÌÐòÐèÒªÓõ½´óÄÚ´æµÄµØ·½Ìí¼Ó£º
init_set("memory_limit", "128M");
ÕâЩ¿ÉÒÔÔÚÓ²¼þ»·¾³·½Ãæ½â¾öÎÒÃǵÄÎÊÌ⣬²»¹ý×îºÃµÄ·½·¨»¹ÊÇÑϸñ¿ØÖƳÌÐòÖÐÄÚ´æµÄËðºÄ¡£¼°Ê±unsetһЩ´ó¶ø²»ÓõıäÁ¿»ò¶ÔÏó¡£
Ïà¹ØÎĵµ£º
import flash.net.FileFilter;
import flash.net.FileReferenceList;
import fl.controls.Button;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.HTTPStatusEvent;
import flash.display.Loader;
import flash.net.URLRequest;
var ......
½ñÌì¸ø´ó¼Ò½éÉܵÄÊÂÒ»¿îÀ´×ÔÃÀ¹úµÄºÀ»ªÖ÷»ú¿Õ¼ä£¬¿Õ¼äÀàÐÍÊÇPHPµÄ£¬ËٶȺܿ죬Ö÷»úÅäÖÃÒ²ºÜºÃ£¨4CPU£©£¡
Ïл°²»ËµÁË£¬¿´Ãâ·Ñ¿Õ¼ä½éÉܰɣº
¿Õ¼ä´óС£º5GB
ÔÂÁ÷Á¿£º10GB
Ãâ·ÑMySQLÊý¾Ý¿â£º ÎÞÏÞÖÆ
Ö§³Ö½Å±¾£ºCGI£¬ PHP£¬ FrontPage Extensions£¬ Perl£¬ Python.
Ö§³ÖFTP
Ö§³ÖÓòÃû°ó¶¨
ÓÐÃâ·ÑÓʾ֣¬ÊÇcPanelÃæ°åµÄ£¬Ö§ ......
phpÌØÊâ×Ö·û¹ýÂË
1¡¢¹ýÂ˱êÇ©(HTML)£ºstrip_tags()
ÀýÈ磺
<?php
$text = '<?php ?><p>Test paragraph.</p><!-- Comment -
-> <a href=http://topic.csdn.net/u/20090311/09/"#fragment">Other text</a>';
echo strip_tags($text);
echo "\n";
// ÔÊÐíʹÓÃ<p>ºÍ< ......
1.È¡µÃµ±Ç°ÄÚ´æÊ¹ÓôóС£ºmemory_get_usage()
2.¼ÆËãÖ´ÐÐʱ¼ä£ºmicrotime(true)
3.ÉèÖÃscriptÖ´ÐÐʱ¼äÏÞÖÆset_time_limit
4.ÉèÖÃÄÚ´æÏÞÖÆini_set("memory_limit","256M");
3.´ÓÔ¶³ÌÏÂÔØÎļþµÄÁ½¸ö·½·¨£º
$contents=file_get_contents("http://www.govtrack.us/data/us/gis/zip4dist-prefix.t ......
ÔÚ PHP Öб¾Éí´øÓÐÒ»¸öÓà C ÓïÑÔʵÏÖµÄ xmlrpc À©Õ¹£¬½Ð
xmlrpc-epi¡£ÒòΪËüÊÇÓà C ÓïÑÔʵÏֵģ¬ËùÒÔ´ÓËÙ¶ÈÉÏÀ´Ëµ±ÈÓà PHP ʵÏÖµÄÄÇЩ xmlrpc
À©Õ¹Òª¿ìµÄ¶à¡£µ«ÊÇÔÚʵ¼ÊÓ¦ÓÃÖÐÈ´·¢ÏÖºÜÉÙÓÐÈËÓÃÕâ¸öÀ©Õ¹£¬´ó¶¼ÊÇÓà PHP ½Å±¾ÊµÏÖµÄ xmlrpc
µÄÀ©Õ¹¡£ÔÒò¿ÉÄÜÓÐÒÔÏÂÁ½µã£ºÒ»ÊÇÕâ¸öÀ©Õ¹ÐèÒªÔÚ·þÎñÆ÷ÉÏ´ò¿ª£¬Èç¹ûûÓзþÎñÆ÷² ......