Byron Posted May 28, 2008 Share 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 Quote Link to comment Share on other sites More sharing options...
Sungazer Posted May 28, 2008 Share Posted May 28, 2008 haha nice avatar Quote Link to comment Share on other sites More sharing options...
Byron Posted May 28, 2008 Author Share Posted May 28, 2008 haha nice avatar Looks like Calvins side kick Hobbs! That is funny! Quote Link to comment Share on other sites More sharing options...
JcX Posted May 30, 2008 Share 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 Quote Link to comment Share on other sites More sharing options...
Byron Posted May 30, 2008 Author Share 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 Quote Link to comment Share on other sites More sharing options...
TroJan-X Posted June 3, 2008 Share Posted June 3, 2008 used for .... which code Quote Link to comment Share on other sites More sharing options...
Byron Posted June 3, 2008 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.