今天我的新一台服务器安装了php环境但在在运行时提示Fatal Error: Allowed memory size of xxxxxx bytes exhausted了,是内存不足呀,下面我来介绍解决些问题的几种办法。
方法1:编辑php.ini 在php.ini中
找到“memory_limit”这一项,如果没有,你可以在文件的尾部自己增加这个参数,以下是一些设置范例,memory_limit = 128M ;可以将128M改为任何你想设置的值.
方法2:.htaccess
说明:这种方法只有在php以Apache模块来执行时才生效,在你的网站的根目录下找到“.htaccess”文件,如果没有,可以自己创建一个,然后把以下配置放入其中
php_value memory_limit 128M;可以将128M改为任何你想设置的值.
方法3:运行时修改php的内存设置
在你的php代码中增加以下命令行即可:ini_set('memory_limit','128M');
友情提示:如果你是php5.2.17可能上面办法对你都无效,这个官方就是bug无法解决些问题,我们也只能重新安装php环境了,如php5.4
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » PHP修改memory_limit内存限制的方法详解
波比源码 » PHP修改memory_limit内存限制的方法详解
buy levaquin 500mg generic order levaquin 500mg online cheap
avodart pills order ondansetron 4mg online zofran pills
order aldactone purchase valacyclovir without prescription diflucan 100mg usa
acillin for sale order cephalexin order erythromycin sale
sildenafil 100mg uk order careprost online cheap methocarbamol order
suhagra 100mg brand purchase aurogra generic order estrace 2mg sale
order lamictal pills buy vermox generic retin gel
buy tadalafil generic order tadacip 10mg pills voltaren us
order accutane 40mg without prescription isotretinoin us azithromycin 500mg cheap
cheap indomethacin 50mg lamisil uk amoxicillin drug
tadalafil 40mg cost Order viagra us order sildenafil 100mg online
anastrozole over the counter Canada meds viagra viagra mail order
buy deltasone 20mg generic generic tadalafil viagra next day delivery usa
buy accutane 20mg stromectol 3mg us stromectola online
provigil 200mg drug order modafinil 200mg pills buy acetazolamide 250 mg generic
brand altace order altace 10mg online cheap azelastine 10 ml drug
order clonidine 0.1mg pill purchase tiotropium bromide without prescription order spiriva 9mcg online
generic imdur lanoxin over the counter order telmisartan without prescription
bupropion drug zyrtec 10mg cost quetiapine 100mg drug
molnupiravir 200 mg cost omnicef 300 mg canada buy lansoprazole 15mg without prescription
zoloft generic order lexapro without prescription viagra buy online
order cialis 10mg Samples of cialis buy viagra 50mg
order naltrexone without prescription generic naltrexone 50mg aripiprazole price
generic dapsone 100mg buy nifedipine 30mg for sale perindopril uk
buy provera 10mg online oral cyproheptadine 4mg cyproheptadine buy online
purchase provigil modafinil 200mg sale stromectol for head lice
buy fluvoxamine 100mg generic order nizoral 200 mg pills glucotrol us
azithromycin 250mg oral buy zithromax online cheap buy neurontin 800mg sale
buy furosemide 100mg online order furosemide 100mg generic plaquenil drug
order cialis 40mg order betamethasone 20 gm online cheap anafranil 25mg uk
chloroquine 250mg pill olumiant oral baricitinib 4mg over the counter
purchase itraconazole without prescription order itraconazole online tindamax 500mg uk
order glucophage 1000mg generic order glycomet generic how much is cialis
clozapine 50mg generic buy clozapine generic buy generic decadron
omeprazole pills buy a research paper online roulette online with real money
order zyvox 600mg play casino games for cash online casino real money
lopressor 50mg brand brand lopressor 100mg order vardenafil 10mg sale
thesis writer free spins no deposit canada casino online slots
cost clomiphene play live poker online play online blackjack real money
order generic tadalafil 20mg cialis pills 20mg order sildenafil 50mg online cheap
aristocort us aristocort over the counter purchase clarinex for sale
cialis cheap cialis mail order usa order sildenafil without prescription
orlistat 60mg generic xenical buy online acyclovir 800mg us
buy tadalafil without prescription cheap inderal 20mg plavix 150mg usa
cost zyloprim 100mg order crestor 10mg for sale order zetia 10mg pill
order domperidone 10mg without prescription order domperidone pills flexeril 15mg oral
order generic cozaar order topamax 200mg online cheap topamax 200mg tablet
order flomax 0.4mg generic order spironolactone 100mg pills aldactone 100mg tablet
tadalafil 5mg drug order cipro without prescription ciprofloxacin pills
flagyl for sale online order bactrim without prescription purchase bactrim for sale
tadalafil 40mg usa cheap tadalafil 40mg sildenafil 100mg brand
viagra 50mg canada viagra 100mg us tadalafil canada