Solved

Schedule tasks

Posted on 2006-10-19
7
396 Views
Last Modified: 2008-03-10
Im looking to solve this problem for my site

From my site clients get a newsletter which let them know all updates of day on site but all are from visitors for visitors But every day I have to signin and press a button to send emails.

IS THERE ANY WAY THAT ON A FIXED TIME DAILY THE TASK I DO BY PRESSING A LINK OR BUTTAN MAY DONE AUTOMATIC OR SAME CAN MAKE A LIST OF WORK WHICH MY SITE DO AUTOMAICALLY.

I decide to make a function in index file to active Schedule tasks but there are many chances
my site do not visited on a day :-) the first user of day may get a lot of time in access site due mailing list execusions. or any other which u experts may know.

thanks
0
Comment
Question by:kcoder
7 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 25 total points
ID: 17764152
Use a cron job under *NIX
Or the scheduler under Windows
0
 

Author Comment

by:kcoder
ID: 17764361
is there any coding way to do ? I am on shared server do not have access to do this I think?

0
 
LVL 29

Expert Comment

by:TeRReF
ID: 17764407
Sorry, no. You will have to ask your provider if you can run a cron job.
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17767143
If you have access to any windows or linux box attached to the internet that stays on all the time - you can run the scheduler or cron job there.

For effeciency and simplicity - you should run it locally on the same machine.  If the internet connection goes down between boxes then the job won't run that day.  But there is no issue with running it remotely.  We had to do just that for over 6 months while we waited for our contract was over.  Our in-house server (win2k) requested a single web page every morning at 1 am and emailed the result to me.
0
 
LVL 11

Assisted Solution

by:ch2
ch2 earned 25 total points
ID: 17770066
Most of shared accounts won't let you use cron jobs.

My hosting don't let me use cron jobs so i made a php function to do so, but my site is visited every day by Google Boot and is when that function runs.

I use this meta tag <meta name="revisit-after" content="1 days"> for the robots. It works for me.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now