memory - How to keep PHP script running until it finishes? -


i have script looks specific words in environmental news articles. can process 1 article, , maybe 5 more , (no data received) however, have cycle through 30 rss feeds contain 10 articles each, once per week.

is there more robust solution? or way have process few , restart itself?

my colleague suggested explain happens in script. script loads rss feeds list. 1 one. uses magpie_debug obtain links, title, dates.  if date less 60 minutes ago, (fresh article)  pulls plaintext (simple_dom) attaches pos tags using brill tagger splits text sentences. builds arrays of capitalized nouns, matches them twelve different word banks including large database of chemicals, companies etc. , generates algorithm of 'total environmental impact' each sentence. moves next sentence in article until completed.  each article takes 10 seconds process.  moves next article. until articles processed. moves next feed until feeds processed. 

i can grab plaintext of articles/feeds no problem, once throw in processing, capability drops dramatically. no data received after 4 articles.

i think you're looking based on title of question:

<?php //set time limit infinite set_time_limit(0);  //do more stuff ?> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -