Now you should have a file called ftplogin.php with a few lines of code.
Go to the bottom of the script and look for the line that starts with $tmp. You
should see
localhost. This is where you enter your ftp server address. You shouldn't have to
edit anything
else. Now if you want to password a file such as index.php then just paste the
following code
at the top of the file.
Now you should be able to view your index.php and have it pop up the user name and
password box. Enter your user name and password of the account you own on the ftp
server.
It should display your index.php if authenticated.
Here is a index.php sample.
----------------------------------
<?include"ftplogin.php";?>
<html>
<center>Hello there Welcome</center>
</html>
----------------------------------
This should work with any ftp server as long as you have an account and the
webserver's ip is allowed to the ftp server's ip address.
John L. Jolly III
john@flaccess.com
www.flaccess.com