Jump to content

PHP page persistence


Oxymoronic

Recommended Posts

Hello all  :)

 

Is it possible to have a php web page run continuously in the background like a thread? I'm thinking of how a servlet would work...

 

Basicaly, I would like this page to download a css feed every couple of minutes, an I was wondering if it were possible to do this without some sort of script on my own pc dothing this, then uploading to my web hosting service.

 

Thanks in advance.

Link to comment
Share on other sites

Thanks for the amazingly fast reply.

 

After quickly reading up on what a  cron job was, I came to the conclusion that it would not solve my problem. First of all the hosting account is on a windows box, and secondly, I dont have access to the system to run commands.  :-[

 

Thanks again tho.

Link to comment
Share on other sites

You'll have to have something else calling the PHP script, it can't call itself.

There are ways to make desktop apps with PHP but it's not really worth it for this.

 

You could open the page on your browser and use refreshEvery (firefox extenstion) as a hack until you get your own linux server :)

You could switch to MT which gives you cron jobs.

Unless you're using ASP or windows only stuff, I'd use linux hosting over windows in the future.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.