[Tool/Web/Other] [PHP] Is this code safe to use?
#10

Quote:
Originally Posted by gotenks918
If the file is on a live server as in people would be able to access the page then I would either create a folder called includes or w/e you want with a file which will contain the passwords you use to connect to FTP. So for example;

$username = "user123";
$password = "password123";

Be sure to include this file in you page. Then add a .htaccess to the includes folder. Any passwords used then wont be able to be reached and there will be no information in your main php file as you have referenced them by using variables.
It's serverside, they can't access it anyway it wouldn't matter.
Reply


Messages In This Thread
[PHP] Is this code safe to use? - by SiJ - 01.02.2010, 19:03
Re: [PHP] Is this code safe to use? - by SiJ - 02.02.2010, 09:18
Re: [PHP] Is this code safe to use? - by Creed - 02.02.2010, 11:46
Re: [PHP] Is this code safe to use? - by SiJ - 02.02.2010, 11:48
Re: [PHP] Is this code safe to use? - by Streetplaya - 03.02.2010, 11:59
Re: [PHP] Is this code safe to use? - by ettans - 03.02.2010, 12:09
Re: [PHP] Is this code safe to use? - by SiJ - 03.02.2010, 13:41
Re: [PHP] Is this code safe to use? - by Streetplaya - 03.02.2010, 18:13
Re: [PHP] Is this code safe to use? - by gotenks918 - 03.02.2010, 18:23
Re: [PHP] Is this code safe to use? - by Norn - 03.02.2010, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)