Jump to content

[SOLVED] Crontab


iversonm

Recommended Posts

So i have a crontab scheduled to run every minute, the basic idea is i want it to run a php script that will clear inactive users from a table in a database on my website. so whenever it runs the crontab this is the email i get

/var/www/vhosts/website/httpdocs/crontab/clearusers2.php: line 1: ?PHP: No such file or directory

/var/www/vhosts/website/httpdocs/crontab/clearusers2.php: line 2: syntax error near unexpected token `'localhost','

/var/www/vhosts/website/httpdocs/crontab/clearusers2.php: line 2: `$Connection2=mysql_connect('localhost', '****', '***') or die(mysql_error());'

 

So I am assuming its not running the php file, any ideas? Comments? Suggestions?

Link to comment
https://forums.phpfreaks.com/topic/182212-solved-crontab/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.