can you help me setup cron job on godaddy webhosting? I have php file that i need to run, it is located in cron subdirectory (so address is http://test.com/cron/file.php).
What do i need to write in command input field, so this file is runned?
At the time of this writing, on GoDaddy shared hosting, i could NOT use the following commands:
ping, curl, nc, lynx
but i COULD use:
I successfully created a cron job using
wget to load a PHP file containing a call to
wget http://YOUR_DOMAIN/YOUR_PATH/YOUR_PHP_FILE.php > /dev/null 2>&1
in "YOUR_PHP_FILE.php" code all the actions you want to be performed and include a call to
mail() (or whichever mail method you may want to use assuming you have configured that properly).
mail() the SMTP relay server will already be set properly in the "php.ini" file to:
relay-hosting.secureserver.net -- which you can confirm using