Jump to content

Never-ending PHP

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Coldblackice

Coldblackice

    Newbie

  • Members
  • Pip
  • 9 posts
So I've written the program that I've wanted in PHP: it parses the source code of a website, flags certain thread titles, then sends me the results.

Question: how do I keep this program running without exit? I'm hoping there is some way other than having a script or another program having to continually call my php program to run.

Is it possible to have php program that continues execution without exit (without using one of those buggy php-to-exectuable converters)?

I think I may have dead-ended here, as I realize that PHP is mostly for a one-time runthrough to collect user data on the server, and then spit something back, and then "close". But I really need this program to stay open on its own and continually poll a forum.

thanks!

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Moved to the correct forum. If you run the PHP script in CLI mode, there will be no maximum execution time. Otherwise, you'll always be limited by the param in your php.ini file.

#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
or if available, run it each minute in a cronscript, maybe that's enough.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall