This question already has an answer here:
- Execute PHP script in cron job 3 answers
I'm trying to run a php file to store some set of values in database for every minute through cron job.
Here is my code to store the values in database:
store.php
<?php
$db = mysqli_connect('localhost','root','pass','sample') or die ('not connected');
$result = $db->query("insert into emaillist (email,fname,lname) values('ganesh@gmail.com','rathina','ganesh')");
?>