ok guys ive coded in php lots of times just never figured out how to work with crons im trying to make turns on my game but i have it running thru a file and i dont like having to click it every 59 minutes lol is there a function to call that will execute this file without it popping up so it executes every 59 mins whether the user is logged in or can someone help me on the crons...
Well this all depends on what you're php files is attempting to do. If you have to have a session with the user's information, then you will have to include a file executing php code every minute. Otherwise, what would be best would be to create a cron tab as long as you have permission to use it on your host. The cron tab would call the file specified automatically.
If you have cPanel it's really simple to add a cron... You could use just wget (url-to-file) wich downloads the file making it exicute now of coarse that cops its self in the directory 10billion times lol but.... it gets job done.
Yes, wget is a unix command and it downloads a file and puts it in the directory you are when you enter that command. It is a way to put files on your server you can say. Now the command is exicuted on the box in your /home/user/ directory. Wich is what is before your /www/ and /public_html/ files on your cPanel account. So when it downloads the file it exicutes command. Crons execute commands in linux at a certian time.