Solved

Schedule tasks

Posted on 2006-10-19
7
416 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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 look for a specific file type in a local or remote server directory using PHP.

729 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