|
| |
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 0:36:31
try ljh1 - no its just that when they set up the password and access files at the server those were the username and password I gave them and they encrypted it etc. The part of your script in the header is in kind of grey type - whereas the part in the body is in colours... I've pasted it in a million times and it's still the same.
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 0:49:23
If I follow the link www.mwpics.com.au/clients/DJohnson and use DJohnson and ljh1 it works - so now I have NO idea where the problem is.
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 0:58:39
Here is a clean version: Using the javascript in my post on the 1st page, name a file names pass.js, and put it in the clients directory. Then, for the index file of the clients folder, use this code: <html>
<head>
<title></title>
<script src="pass.js" type="text/javascript"></script>
</head>
<body>
<p>Welcome to my page designed in notepad on a 25 year old computer.</p>
<form name=login>
<input type="hidden" name="server" value="www.mwpics.com.au/clients/">
<p>Username: <input type="text" name="username" style="width:80;height:20" size="20"></p>
<p>Password: <input type="password" name="password" style="width:80;height:20" size="20"></p>
<p><input type=image src="images/login_cen.jpg" onClick="Login(this.form); return false;"></p>
</form>
</body>
</html>
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:19:13
Sorry - do you mean put the script from your first post in the file named pass.js and put it in the clients directory?
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:26:57
Create a new file named pass.js Insert this into the file: <!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server + username + "/";
window.location = htsite;
}
else {
alert("Please enter your username and password.");
}
}
// End --> Then place that file inside the folder named clients Then it will all work.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:29:38
So nearly there - it kind of works - have a look,
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:34:15
You left off an > to the right of the last html tag.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:37:59
still not working! I pasted your code in again
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:41:04
listen you angel - I HAVE to go out for an hour or 2 - I'll check for when you're back online later or tomorrow - I think we're close.... I pasted your code in exactly - I'm getting a syntax error message. Its trying to go here http://DJohnson:ljh1@www.mwpics.com.au/
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:50:58
Angel, hehe Well I am here UNTIL 4 AM. So for another 4 hours I will be here bored. The URL you posted, that it is trying to goto, is the correct url, if you addd the correct folder name to the end.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 1:55:12
Btw, I tested your page (after holding down the shift key and hit refresh) and it worked fine.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 5:01:40
How do you mean add the folder name to the end? How can I get that to happen automatically? I can't get it to work aaaaaggghhhhhhhh You realise I'm going to have to do all this again for each client!!!!!! I'll have to go back step by step and look at it all very carefully - meanwhile I just can't get the last bit to happen
< Message edited by kristinm -- 1/9/2005 5:09:08 >
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 13:55:42
You don't do this for each client, you just create a username/password. This works for me on my computer, on your site. Can someone check and make sure it works for them too?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 16:11:33
It aint doing it for me - I get a 404 error message - the file's definitely there - what are you seeing when you get there?
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 16:32:12
Can you tell me step by step what you are doing. Like, goto url: domain.com, entered username test, and password test1. Then hit login.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 17:36:59
go to www.mwpics.com.au/clients enter DJohnson and ljh1 then return - there is no 'login' button - there are a couple of symbols which look like they should be something that isn't loading or showing - underneath the form is one of those red cross in a box things, I tried clicking on that after I'd entered the details - same result. its ie6 by the way When the clients get to their folder - they should right click and download their files I guess - they will be large tifs or jpegs so they don't want to be opening them. I'll have to put instructions on the page. If I go straight to www.mwpics.com.au/clients/DJohnson - the .htaccess box comes up and I and enter the passwords from there & it works - is that what I'm supposed to do? That would work also! I could give each of them their own address without them having to go through the central login I suppose.
< Message edited by kristinm -- 1/9/2005 17:43:20 >
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 18:06:24
The issue seems to be with the captilized letters. Can you create the usernames in all lowercase? If so, this will work, and it will do exactly what you want, with ease. By entering in: http://DJohnson:ljh1@www.mwpics.com.au/clients/DJohnson/ It will submit the user/password for the www.mwpics.com.au/clients/DJohnson/ folder Basically what has been happening, is that it sends http://djohnson:ljh1@www.mwpics.com.au/clients/DJohnson/ The software on your server requires the authentication to be case sensative. At least that is what it looks like from my end. It does work, so I don't see why it woud not work for you. Did you shift+refresh? Btw, how are you configuring the passwords? Are you using some type of control panel?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 20:38:33
Well so far I've only used the password the guys at the server did for me - they encrypted it, they did send me a link to some encryption thingy - apparently it has t be encrypted to work.
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 20:39:33
So you don't have access to a control panel?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 21:11:45
Well - um ???? I can log in & in the instructions for how to do .htaccess there is a link to a password encrypter - it says unix-style password encrypter... What should I have for a control panel?
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 21:13:49
Something like "Direct Admin" or "cPanel" Most hosts will offer a control panel that easily allows clients to password protect directories. If you can create the user in all lowercase, the script will work.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 21:39:58
No - I've just checked I do have a 'control panel' but it's a member services thing where you can stuff about with your email addresses and so on - there is also a mysql admin section but I don't have a database set up. There's also a bit for CGI scripts that tells you how to install them... & that's about it! Also - I've just changed it all to lower case and still not going there!!!!!! What the???***
< Message edited by kristinm -- 1/9/2005 21:51:52 >
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 22:07:31
Kristin, it works for me... I don't know why it wouldn't work for you. Maybe someone can stop by and verify it works for them. What URL is it taking you to when you say it is not working?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 22:14:13
I had a few other people test this for me, they said it works for them. Can you please remove the login page from the djohnson directory? Just add something like "secure page"
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/9/2005 22:47:07
OK there's nothing in the djohnson directory now except the .htaccess file, the password file and your pass.js file - should that be there? It takes me to http://djohnson:ljh1@www.mwpics.com.au/clients/djohnson/ with an error message - file not found etc. THat's when I begin at www.mwpics.com.au/clients and go from there. When I begin at www.mwpics.com.au/clients/djohnson and enter the username and password into the .htpassword generated form it works.
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/10/2005 2:37:18
Yep its the old The page cannot be displayed The page you are looking for might have been removed or had its name changed. ????
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/10/2005 2:51:41
Well that means it works. If you click on the link above, and get the exact same message that you do when you enter your user/pass into the login, then it works. I would suggest you clear your cache. Tools > Internet Options > Delete Temp Files
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
kristinm
Posts: 32 Joined: 11/17/2004 From: Sydney Australia Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/10/2005 2:57:55
still the same - where does the link take you???? THe thing is if I got to www.mwpics.com.au/clients/djohnson I get the login generated by the .htpassword - then sometimes if I login there it goes back to your login page and sometimes straight to the folder......
|
|
|
|
BobbyDouglas
Posts: 5452 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: allowing clients to download files - Perl? PHP? - 1/10/2005 2:59:26
This is because you are loading the page from your cache, you have to delete your temp internet files. If you try this on another computer it will most likely work.' I told you earlier you should create a new file that says, "this is the secure page" that way you know when it works.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|