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条)

报告相同问题?

悬赏问题

  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥15 复杂网络,变滞后传递熵,FDA