Current location: Hot Scripts Forums » Programming Languages » Perl » I need help getting the ball rolling.


I need help getting the ball rolling.

Reply
  #1 (permalink)  
Old 11-21-03, 09:19 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Post I need help getting the ball rolling.

I'm having a slight (massive) brain bashing experience trying to figure out how to get htaccess to work through a login box on the html page. When a user logs in it should be sent to the login htaccess file (I guess) so as to avoid the horrid windows username and password box popping up.

Once a user logs in how does the server know who this person is? (My resource books dont cover anything like this so I have to figure this out on my own) ie Joe_bloggs signs in and goes to his personal account information, where does the info come from and what format is it so I can use it in my perl scripts?

I'm one of the original type programmers who dont like using databases as these are (in my opinion) nacker jobs! I prefer raw text files which can be accessed easily. (if db's where so good why is the htaccess files and passwd files wrote in raw txt format...I rest my case)
Can you please keep this in mind when suggesting solutions. Thanks.

DAL

Server Linux, Telnet access denied on my server so I only have ftp access.
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 03:32 PM
YUPAPA's Avatar
YUPAPA YUPAPA is offline
Newbie Coder
 
Join Date: Sep 2003
Location: Antarctica
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

You will have to write everything fully in perl and use cookie and session for keeping track of a user when he login. If you use .htaccess, you can simply use the environmental variable $ENV{'REMOTE_USER'} for getting the currently login user. Then you can do that without cookies.

You can make a script that is compatible with cookies and a .htaccess password prompt. Here is an example that I created for my hosting control panel:

username: demo
password: demo

Login via Web Site: http://web.yupapa.com/pccs.gateway?chnl=controlpanel
.htaccess Password Prompt: http://cp2.yupapa.com
Reply With Quote
  #3 (permalink)  
Old 11-21-03, 04:22 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Cool Thanks YUPAPA

Thanks YUPAPA. I think that might get me started. Can you recommend any perl books that go into this and would help be build a half - as - good site that you have?

Im in England (UK) so it would have to be by a popular press.

(I currently have a programming perl oreilly book and also perl in a nutshell which is also oreilly)

Thanks
DAL
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #4 (permalink)  
Old 11-21-03, 09:14 PM
YUPAPA's Avatar
YUPAPA YUPAPA is offline
Newbie Coder
 
Join Date: Sep 2003
Location: Antarctica
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

I also like the oreilly cookbook... If you are new to perl, I recommend the "beginning perl" book written by Simon Cozens. It is very easy to understand.

http://www.amazon.com/exec/obidos/tg...lance&n=507846

I only have two books
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 04:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.