close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Running an Automatic PhP Script

Thread began 6/15/2010 6:39 am by Mikel Jones | Last modified 6/15/2010 8:48 am by Mikel Jones | 1819 views | 5 replies |

Mikel Jones

Running an Automatic PhP Script

I want to be able to run a script every morning at 7:00am. Is threre any way through PhP to schedule scripts?

I called my hosting company and short of buying the 50 to 300 a month package they had no way to schedule either backups of my MySQL database or run a PhP script on an interval.

I did a search and found a couple of threads on cron jobs but they seem to need access to the server and I don't have that being hosted and all.

Anyone have any pointers to keywords or threads that will point me in the right direction?

Sign in to reply to this post

Miguel

First if your server is linux they should have cron jobs unless they restrict that to thier clients wich will make them a bad hosting company, and if your working with a windows host it use a library called scheduale task, now a good hosting company, would give you any of the options to set things up on their control panel, try finding a hosting provider that gives you cpanel for linux server wich is easy to set up a cronjob, the only way you can accomplish runing a script the way you want is that your hosting provides you with those functions.

In the worse case you can get the service with other companys like www.cronjobs.org/ wich will call you file script and execute it giving the correct url of it on your host.

Sign in to reply to this post

Mikel Jones

Originally Said By: Sades
  First if your server is linux they should have cron jobs unless they restrict that to thier clients wich will make them a bad hosting company, and if your working with a windows host it use a library called scheduale task, now a good hosting company, would give you any of the options to set things up on their control panel, try finding a hosting provider that gives you cpanel for linux server wich is easy to set up a cronjob, the only way you can accomplish runing a script the way you want is that your hosting provides you with those functions.

In the worse case you can get the service with other companys like www.cronjobs.org/ wich will call you file script and execute it giving the correct url of it on your host.  





Thank you. I guess I need to call them back. :)

Sign in to reply to this post

Mikel Jones

Originally Said By: Mikel Jones
  Thank you. I guess I need to call them back. :)  



Yep, you were right!

The guy I called the first time at GoDaddy didn't know his xxx from a hole in the ground. They have something called "Cron Manager" and I have access to it from their hosting control panel. I just logged in and set up the job. Easy squeezy!

Thanks again for the pointers.

Sign in to reply to this post

Miguel

NP you should of mentioned at the first time it was godaddy hosting service they all give you the options to run the cronjob i suggest you test it first to see if it runs ok with a 5 minutes timer then set it up to run every day at the time you need, this suggestions is from my own experience that some times making the cronjob command is diferent on each hosting company depending on thier control panel, also check their help files on the correct way on how to use the settings to make a cronjob or automated task.

Sign in to reply to this post

Mikel Jones

Originally Said By: Sades
  NP you should of mentioned at the first time it was godaddy hosting service they all give you the options to run the cronjob i suggest you test it first to see if it runs ok with a 5 minutes timer then set it up to run every day at the time you need, this suggestions is from my own experience that some times making the cronjob command is diferent on each hosting company depending on thier control panel, also check their help files on the correct way on how to use the settings to make a cronjob or automated task.  



Will do and thanks again.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...