I’m trying to set up a cron job that runs a php script that updates a database. It is returning an error that it can’t connect.
The error shows a host other than my domain. Does a cron job typically need special or remote permissions to connect?
This is on Dreamhost incidentally.
Thanks for any help.
It should be able to connect with no problems. Sounds like an error in your php code if its trying to use another host but seeing as you’ve opted not to show your code there isn’t much else we can help you with.
Is this connecting to a MySQL database?
In the PHP script are you using the mysql_connect() function? If so, what is the first parameter you are giving to it?