Jump to content
MakeWebGames

Recommended Posts

Posted

Hi all,

 

I have never managed to get my crons working. I thought maybe it was me being a newb etc, so I basically went about learning what I could and setting my game up.

 

Now the time has come to try and get these gods aweful Crons working and I have read most the threads in these forums on them and still no success.

 

I am hosted with GoDaddy at my partners request (he funded the hosting so no moaning at me).. they do not use Cpanel.

 

So I temporarily hosted my site on a free server that has cpanel and allows crons.. no success in getting them running.

 

I have a few dents in the wall from head banging so please, If anyone else uses the same host that I do and has advice on what to do then I will be gratefull.

 

Also unsure if this is the right place but most the cron threads seem to be in this area of the forums..

 

;(

Posted

There are a load of cron jobs services out there which would run your crons. For instance after a quick google search I found

http://www.setcronjob.com/

Considering you're using Mccode and you'd want minute crons you'd need to purchase a premium account but skimming over the website it seems they're not to expensive.

Posted

Create Cron

Create cronjob

browse...

then u have the option of when 00.05, 00.10 etc

then when I click browse it goes into the files.. i click on cron_fivemins.php and it gives this code in the command line..

/web/cgi-bin/php5 "$HOME/html/cron_five

I let it run and allow it to report to my email... I get this:

Content-type: text/html

but no change in game as far as the health/will etc are concerned.

Posted

Figured it out!!

Thought I would share it in here for anyone else having issues relating to a host without cpanel and using crons..

The command line given by the host automatically is wrong.

I have adjusted the command line to this:

/web/cgi-bin/php $HOME/html/cron_fivemins.php code=mycode

the auto one was:

/web/cgi-bin/php5 "$HOME/html/cron_fivemins.php

 

So basically take out the 5 and " marks and add the code

*opens bottle of lemonade* (Wish it was champers :P)

Thanks to you all who tried to help and sent messages :thumbsup:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...