Hello guys, I don't know whats wrong I followed every tutorial for adding editing cron jobs
here is what I did.
using putty
sudo crontab -e
1 * * * * /usr/bin/php /var/www/cronjob.php
then save file,
my cronjob.php for testing perposes
$DB_HOST="localhost";
$DB_USER="root";
$DB_PASS="123456";
$DB_NAME="cron";
$connect=mysql_connect("$DB_HOST","$DB_USER","$DB_PASS") or die ("error");
mysql_select_db("$DB_NAME",$connect) or die ("error");
$sql="INSERT INTO `jobs` (
`id` ,
`job`
)
VALUES (
NULL , '3333'
)";
mysql_query($sql);
its supposed to enter "333" value in database every 1 minutes but nothing was entered
is there somthing wrong with my command ?