That would be from your CPannel inside your hosting account. You may want to contact hostgator support and ask them to show you how to set up a cron-job. Once they show you once it's just a matter of customizing that cron-job to suit your needs.
i need a vps to act like its on a site 24/7 so instead of me having to stay on let say example.com it stays on example.com its self and runs the php script how do i do that
you need a vps to act like its on a site 24/7?....
AFAIK vps means virtual private server and it's a type of hosting plan... like shared hosting, or dedicated hosting.
I think you need to re-formulate your question better so that someone here may be able to help you out.
A) What kind of VPS and control panel are you running?
B) Does the script need to run without turning off? Is that what you are asking?
C) Did the script come with any instructions? If so, might be helpful to share.
You could also use screen run the command and then detach the screen session using CTRL+AD I use screen all the time it is a great tool. To reattach to the session type screen -ls to list the sessions and then screen -r <sessionnametoreattach> to reattach to that session.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.