Re: [PHP] Hard coding in an Admin Account
either way is just as secure
if you put it in the php source code, it's not displayed to the user, (unless there is an error and it displays source code).
if you have the admin account in a DB you still have to have the db password in the php, so the password is still just as exposed to any 'hacker' who would have got the password by reading your source code anyway, because by the time they've seen the source, they seen all the code and know the DB passwords and how to get the passwords from the DB
storing the password in the DB is a lot more convenient.
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."