Security:
Password protect your files ftp.php and ftp_edit.php. With a password, only you can view these pages.
Here's what you can do. I used Dynamic Drive to create an encrypted password. But you can do this by hand as well.
1. When using Dynamic Drive, choose a username and password that will be very difficult to figure out. I choose at least 8 alpha-numeric characters for the user name and 12 alpha-numeric characters for the password.
Path to htpasswrd file should look like this:
/home/mysite/
Where 'mysite' is up one level from your root folder. [ usually your login name ]. If you do not know the path, then contact your host company.
Don't put your password file in your root folder.
2. When you click submit you will receive two pieces of information ~ it should look something like this:
A. your htaccess file information:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/.htpasswd
AuthGroupFile /dev/null
<Files ftp.php>
require valid-user
</Files>
<Files ftp_edit.php>
require valid-user
</Files>
B. your htpasswrd information:
DynaPrimeUser:j3t8uaa.B5hSE
Note that the username is listed first. The password, which is encrypted, follows the colon (:).
===================== Place the htaccess information in the htaccess of your site. In this case in the area you have the DynaPrime script uploaded.
Make a .htpasswrd file and upload in ASCII to your server one level up from your root folder.
Test the pages by logging in
www.YOURSITE.com/ftp.php
www.YOURSITE.com/ftp_edit.php
--------------------------------
|