grandadevans Posted March 13, 2006 Share Posted March 13, 2006 Hi,I have created a script to email users if it is their birthday. Is there a way that I can get the php file to run daily by itself on my web srever.Thanks in advance,John Quote Link to comment Share on other sites More sharing options...
naskoo Posted March 13, 2006 Share Posted March 13, 2006 make it daemon in Linux or shedule task in windows ... Quote Link to comment Share on other sites More sharing options...
fusionpixel Posted March 13, 2006 Share Posted March 13, 2006 [!--quoteo(post=354425:date=Mar 13 2006, 01:51 AM:name=naskoo)--][div class=\'quotetop\']QUOTE(naskoo @ Mar 13 2006, 01:51 AM) [snapback]354425[/snapback][/div][div class=\'quotemain\'][!--quotec--]make it daemon in Linux or shedule task in windows ...[/quote]In some other places they are called 'cron jobs' if you have access to your webserver look for that section. Quote Link to comment Share on other sites More sharing options...
grandadevans Posted March 13, 2006 Author Share Posted March 13, 2006 Hi,Thanks for that.I have just sent an email to 1&1 to see how I go about setting the cron jobs up.In their FAQ it explains how to do it from a shell but it doesnt tell you how to connect to the shell.Does anybody have any ideas as I know that 1&1 are particularly slow at responding.If I need to do it from my system I am not using linux, I am using XP, does that matter?Thanks again to all,John Quote Link to comment Share on other sites More sharing options...
mark s Posted March 13, 2006 Share Posted March 13, 2006 I'm a 1 and 1 customer too.You need to down load a program from your control pannel called. (Ive forgot)But its what the recomemnd.Down load that.Run it from your desktop.The settings you require should be on 1&1 for the connection.Then you connect to your sshand you can then work out the comands to to time your script.You make a script file which points to the file you want to do what ever.and that's it.I'm not at home now so i can send you settings etc orpoint you in the right direction.Message me your e-mail adress and i will get back to you later today.My script automates a back up of my forums.It did take me a while to get my head around cron jobs,but after a while of practice.I'm no expert but i should be able to help you get started with somthing simple.My scriot if i remember right is CGI / Perlas i wasnt sure if a Script file could be php or not.But someone may answer that below. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.