duanpi7578 2014-04-20 10:22
浏览 131
已采纳

大型php程序执行中的内存执行

I have created script where I get user review from Yelp, google etc using their API.

Using this review for Part of speech tagging, kinda Natural lang processing stuff.

I keep loop, which contiously keep fetching the review and extract noun, adjective for each.

I am using this tutorial:

http://phpir.com/part-of-speech-tagging

When I execute the script, it abruptly stops after 40-50 review processing. It does not show any error. DOes is it due to

"php has run out of space in memory"

as per one of the comment on above link. OR some other issue. When I tried my script with limited review example, it works fine.

Here is the link where I execute my script:

http://ec2-54-186-110-98.us-west-2.compute.amazonaws.com/scrap/getreview.php

  • 写回答

2条回答 默认 最新

  • douyan4470 2014-04-20 10:36
    关注

    Try adding this to your script -

    ini_set("memory_limit", "-1");
    set_time_limit(0);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入