Solved

Schedule tasks

Posted on 2006-10-19
7
392 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Encode a password 2 38
php documentation 4 19
session dropped in IE 10 19
Web Reply Form - PHP with Upload 4 14
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 …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

707 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

17 Experts available now in Live!

Get 1:1 Help Now