I'm assuming that this should go here. if it does not then im sure you will move it.
But anyway i have set up a site and i have got a schedule.php which when ran manually. So going to the page in an internet browser works fine.
So then i made up a cron job for it and have checked that this is correct but i also got it to put it to the logs what errors it encounters etc.
Well after a while i checked the log to see if it was working ok and all that and it had this in it for a while
Now that works with the site as it is called upon regularly when there is a hit on the site.
Any ideas what to do to get ti working properly through a cron tab.
The operating system it is on is centos and the php has the mysqli extension installed and of course mysql is installed.
But anyway i have set up a site and i have got a schedule.php which when ran manually. So going to the page in an internet browser works fine.
So then i made up a cron job for it and have checked that this is correct but i also got it to put it to the logs what errors it encounters etc.
Well after a while i checked the log to see if it was working ok and all that and it had this in it for a while
Code:
<br />
<b>Fatal error</b>: Call to undefined function mysqli_connect() in <b>/path/to/class_mysql.php</b> on line <b>134</b><br />
Now that works with the site as it is called upon regularly when there is a hit on the site.
Any ideas what to do to get ti working properly through a cron tab.
The operating system it is on is centos and the php has the mysqli extension installed and of course mysql is installed.