gautamkrishnar/nothing-private

Create a PHP script that truncates the Nothing Private database via cronjob

gautamkrishnar opened this issue · 0 comments

Create a php script that can be executed via cron job that does the following:

  • It truncates the existing entries in the nothing private database. You can use the existing connection.php for the DB connection.
  • It should log the current count of the rows in the database to a file named visitors.txt If the file already exists with a count, the script must read the count from the file and update the file by adding the current count with the previous count. This is used to track the number of visitors.

Path to place the script: db_server/cron.php
Path to save the visitors.txt: db_server/visitors.txt

Skills Required

  • PHP
  • MySQL