eruna — 2011-10-05T15:36:04-04:00 — #1
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.
tangoforce — 2011-10-05T16:04:58-04:00 — #2
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.
sparek — 2011-10-05T16:05:51-04:00 — #3
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?