I am writing a PHP script that connects to the DB to manipulate data. And it has to be a daily task done automatically (cron job). I was wondering if it is safe to write sensitive info (username, password) inside the script. How easily can an intruder get access to this script?
And in case it isn't safe, what are the best practices to be implemented, since, obviously, having the admin input the password every day manually is not an option.
Thanks
And in case it isn't safe, what are the best practices to be implemented, since, obviously, having the admin input the password every day manually is not an option.
Thanks