Hi,
An customer have an script on his site so he can check every 24hr some names and iff needit there will send mails out.
He make an cronjob but we get:
/bin/sh: line 1: /home/username/domains/userdomain.com/public_html/job.php: Permission denied
In his job.php he add:
chdir('/home/username/domains/userdomain.com/public_html');
<?
mysql_connect ("localhost", "user_sql", "user_pass");
mysql_select_db ("user_database");
function tekst ($id) {
return @mysql_result (mysql_query ("SELECT twee FROM teksten WHERE id='$id'"), 0, twee);
}
(and mutch more)
What can we do to run this script every 24 hours?
Tips are welcome!
An customer have an script on his site so he can check every 24hr some names and iff needit there will send mails out.
He make an cronjob but we get:
/bin/sh: line 1: /home/username/domains/userdomain.com/public_html/job.php: Permission denied
In his job.php he add:
chdir('/home/username/domains/userdomain.com/public_html');
<?
mysql_connect ("localhost", "user_sql", "user_pass");
mysql_select_db ("user_database");
function tekst ($id) {
return @mysql_result (mysql_query ("SELECT twee FROM teksten WHERE id='$id'"), 0, twee);
}
(and mutch more)
What can we do to run this script every 24 hours?
Tips are welcome!