![]() |
How to secure a PHP page ?
Hi all ! I am working on a website which is being developed using PHP-MySQL. I have to access the mysql database using username - password. The problem I'm having that I have kept username password in another file and used it as variables in wherever I need to connect to DB.
I have one file with username password: Code:
File.phpCode:
require("file.php"); |
Re: How to secure a PHP page ?
PHP file would never give the output what its there in the variable unless you do some echo or other stuff. I am damn sure the site is more secure than you are thinking of.
|
Re: How to secure a PHP page ?
Ok. Thanks Shabbir. I tried few website copiers to download the website, which downloaded only HTML pages. It means PHP page won't be downloaded ?
|
| All times are GMT +5.5. The time now is 10:57. |