Jump to content

[SOLVED] Auction website


xoerk

Recommended Posts

Hi,

 

I have a question, im building an auction website and i need something like a timer/some procces that will run and check if the auction

is finished and do some sql query's.

But, i do need this procces to run all the time, like even if no user is logined or nobody is on the site,,something that run in the background without any connection to the site,, it will do some sql query's every minute,,,

 

I hope that u understand me,,, :'(

Link to comment
Share on other sites

The problem with corn job is that i need to enter the site in order for it to work,,im looking for something that will run even if nobody enter the site,

I read someing that i could build something with sevlet, a program that run all the time with its own thread and do a check every min.

???

 

 

Link to comment
Share on other sites

The problem with corn job is that i need to enter the site in order for it to work

 

No you dont. cron has nothing to do with a site. It is a method for calling scripts / programs / tasks periodically without any user interaction.

Link to comment
Share on other sites

No you dont. cron has nothing to do with a site. It is a method for calling scripts / programs / tasks periodically without any user interaction.

 

OK, so how can i stop / start the corn job if i need to, and what happends if the server die's for couple of hours..?

what happens then?

 

Link to comment
Share on other sites

OK, so how can i stop / start the corn job if i need to

 

Remove it from crontab.

 

and what happends if the server die's for couple of hours..?

 

Any jobs that were missed will be run once the system is running again.

Link to comment
Share on other sites

 

 

If that happens, you're screwed regardless....until the system comes back up.

 

u meant until some one enters the site,,,even if the server is back up, it wont start until someone enter the site and reload the corn tab up again,

which mean's that if i had some unclosed auction and the time for the auction passed it wont be close/it wont send any email....

Link to comment
Share on other sites

a cron job will work when ever it is told to. If your server is down the cron job will not be able to work as the server is down. Its like a man can throw a ball at 5 oclock everyday, but if he is asleep at 5 he wont be able to throw it ;D

 

~ Chocopi

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.