Byron Posted May 28, 2008 Posted May 28, 2008 I didn't write this script, a friend of mine did (DJ Mike) and it works really well. Just rename it to anything .php and change password to your own password and change $path to directory you want files moved to. Uses the copy function http://byrondallas.heliohost.org/scripts/pswd_file_mover.txt
Byron Posted May 28, 2008 Author Posted May 28, 2008 haha nice avatar Looks like Calvins side kick Hobbs! That is funny!
JcX Posted May 30, 2008 Posted May 30, 2008 Hi, a very nice scripts. Thanks for providing it, I'll need it and try not to use the password protect directory available in Cpanel :-p
Byron Posted May 30, 2008 Author Posted May 30, 2008 Hi, a very nice scripts. Thanks for providing it, I'll need it and try not to use the password protect directory available in Cpanel :-p The password protection just gives you another option besides making a directory password protected. But if your going to use .htaccess anyway, here's a neat little trick that will keep you from typing in your password each time. After you've set up password protection on a directory, go back and configure your .htaccess file like this: AuthName "Restricted Access" AuthUserFile "/home/user/.htpasswds/public_html/directory/passwd" AuthType Basic Require valid-user Order allow,deny Allow from 100.200.300.195 Satisfy any Just replace 100.200.300.195 with your ip and your ip doesn't have to enter the password, but all others do. This way if your on another pc, you can still access your files with a password. Or simply not have a password at all and only allow your ip access: order deny,allow deny from all allow from 100.200.300.195
Byron Posted June 3, 2008 Author Posted June 3, 2008 used for .... which code Those .htaccess codes DO NOT have to be used in conjunction with the password script that I posted. I was just giving a couple of examples of what you could do with .htaccess if you were going to use it anyway.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now