This is probably a question that's been asked over and over but I haven't been able to find it while searching this forum =/
I've separated my database connection functions to a separate PHP page from the data logic. I have a concern that since the database username and password are written in plain text there, it could be a security risk. I've read that changing it's file permissions should do the trick but when I changed them to local user read-only my PHP pages can't reach it. Does anyone know what I should change it to? My web hosting provider is running Linux, right now that file is set to r--r--r--.
Thanks,
Jisoo23
I've separated my database connection functions to a separate PHP page from the data logic. I have a concern that since the database username and password are written in plain text there, it could be a security risk. I've read that changing it's file permissions should do the trick but when I changed them to local user read-only my PHP pages can't reach it. Does anyone know what I should change it to? My web hosting provider is running Linux, right now that file is set to r--r--r--.
Thanks,
Jisoo23