Nov 21, 2009
Pages: 1, 2, 3

Help Needed To Create Login Script With Perl/cgi - Need Script

free web hosting

Read Latest Entries..: (Post #21) by Habble on Jul 12 2008, 10:15 AM.
I need somebody who can take the code to a chat script I bean working on seven years ago and create a registration login, user management script for it and then COMBINE the two so not only is the chat room protected, but users have to register to chat and the registration script adds the username to the username window and database file of the chat script. The chat script is cgi driven, a webchat. I created this from several scrapts abandoned over the eyars, but really like the format... it just...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > Perl & CGI

Help Needed To Create Login Script With Perl/cgi - Need Script

KnightEagle
Have a format in mind and have a good idea how it works. So here what I need:
step 1:::
person must register: create handle // enter password // enter password // enter email : it then takes the person to acsepted page or reject per reason page.
step 2::: login page: enter handle // enter password : takes them on it to the site of their control pages for each handle controls their own pages yet all pages interacts with the others. or bad password re login page.

Have the page designed already have the script in html lang but one can create a password on the html page but it dont work even have the main login page same way. found a login scipt on the web was in three parts login page // password maker page // and log. I manage even get it in a cgi scipt. but when i loaded up on my last host they had limedted cgi allowed and keep getting either page can not display or rerouted me to some page to search at for it. Any scripts and help I could use thanks.

Comment/Reply (w/o sign-up)

ajmal
Use PHP. I have a beta login script that I coded some time ago, it's supports registering, email activation, access levels and etc. I spent 2 days coding it only, it's not that hard, just be patient.

you need, besides the html, obviously a script that handles the posted data, compares the login info and etc.

Comment/Reply (w/o sign-up)

Houdini
Since this post was in the Perl & CGI you should really think about using PHP and a database like MySQL (both are free) and not that hard to learn. You can get PHP download here and you can get the latest MySQL download here.

While it is possible to write an HTML code that would work it would be extemely slow and it would really eatup a lot of diskspace. Astahost gives you unliited database space so with all your data for your scripts being there you don't need to worry about running out of disk space, pluse you would have to write more acript for errors that then eatup even more disk space.

Try PHP and look at the free scripts and in the C Panel for such stuff provided with an account here at Astahost.

Comment/Reply (w/o sign-up)

KnightEagle
Houdini: checked both out. From what I saw neither one php or MySQL appeared to be windows exe. The problem I have at this point I must run on a Windows base computer. do have a program called optipearl but they have a limited amount of examples. Need to remmber windows maybe a easy place to install programs on but suck at running unix or linux programs or even installing them. I do have the operating system redhat 9.0 but I can make heads or tals of it Can fig out the browser in it thats simple click and go.

Comment/Reply (w/o sign-up)

Houdini
Download and install this fantastic Apache PHP, MySQL, Perl, Tomcat, Filezilla FTP server Mercury mailserver and all in one simple windows installer program and set up a server ready to go within 10 minutes of download. It is XAMPP and you can get it here XAMPP Home Page you will be glad you got it and save the trouble of configuring all you need to run a local server with PHP and MySQL.

Comment/Reply (w/o sign-up)

KnightEagle
houdini

Well that was a bust. downloaded all parts and installed them. Knew i was in trouble when it said cant find port 80 and apache not installing due to cant find java. After that the system started locking up. had to do a system restore point to yesterday. Now computer ok again. Almost thought I was going to have to reinstall the entire operation system again. It was a good try.

Comment/Reply (w/o sign-up)

KnightEagle
Found the login script I can use now need the area to put it at. One day I will get that magic email telling me Ive been hosted. Can check the site out at custom-cgi.com they seem to have a lot of cool things for free.

Comment/Reply (w/o sign-up)

saga
Before I will give you everything I know about this problem, which of course will be able to solve it, let me ask you this few questions...


1. Let say that after a user typed correct handle and password then the front page for that user will be displayed. How do u plan to handle this situation when the user go to the 2nd page of the site? Will he need to type again the handle and password for that second page?

2. Do you have any knowledge about cookies? This is the right technology for your problem.


I need to ask you this so I will know how to help u smile.gif

Comment/Reply (w/o sign-up)

KnightEagle
1) you would creat your own password on the registration page only you and I would know.
2) proceed to login page where you enter your user name and password
3) proceed to the pre login page from there enter the game area.


Im working on four areas right now 1) the html part of the site 2) the graphics that will be used 3) the cgi finding the codes or modifing them for my needs. 4) the layout and what areas i want in there.

As for cookies I understand the use and the need for them in this type of game and that falls in to the thrid step.

So for those that want to help to just help I say thank you. Those that want to help and get payed sorry do have low pocks full of cash. All I can say is thank you for payment. I'm trying this just for fun the game may not ever get out of testing and design. Have a feeling it will be lame too most but hey I like it. And is that what counts. So help my friend or not the choice is all yours.

Comment/Reply (w/o sign-up)

KnightEagle
Came acrossed something I dont know how to correct. Im getting an error 500 Apache/1.3.33 Server at www.galaxieconquest.astahost.com Port 80. When ever I try to bring up my login.cgi page place it in my cgi-bin folder and in another tryed linking to either same result can link to it if I name it html the page pulls up. Just cant name it login.cgi then I get the error page 500 will the cgi still work if the page is saved as login.html ??? I know Im looking at it just cant see it for the code.

Comment/Reply (w/o sign-up)

Latest Entries

Habble
I need somebody who can take the code to a chat script I bean working on seven years ago and create a registration login, user management script for it and then COMBINE the two so not only is the chat room protected, but users have to register to chat and the registration script adds the username to the username window and database file of the chat script. The chat script is cgi driven, a webchat. I created this from several scrapts abandoned over the eyars, but really like the format... it just does not have a registration function and is useless without one. thanks!

-lasvegan
KnightEagle Posted Aug 31 2005, 02:36 PM
Looking over the code and I think I nerrowed it down to the common file. think there is a error in the coding. Going to run it throught my editor see what I get.
KnightEagle Posted Aug 30 2005, 04:03 PM
I'm beging to think that the site doesnt allow the use of certain scripts. I've tryed placing the members file in defferent locations and even tryed thr local area also pointed the way to the file still get the same area. Im going to have to just forget it for now. But If I cant get it to work there be no use to do anything else here. for I need the cookie to power the site so to speak. for each page reacts to the cookie as the user proceeds throught... Now does astrahost have a cookie login script that the members can place on there pages or do they allow ys to do it. I'm sitting here with my book open trying to fig what is wronge???????
Houdini Posted Aug 29 2005, 09:48 AM
Looking closely at your post I think I know why your text file can not be found. Here is the error that you quoted from the post...


QUOTE
Unable to open members file, the file 'http://www.galaxieconquest.astahost.com/cgi-bin/cookie_login/members.txt' does not exist.


That tell me that the program is looking for a file named members.txt that is in the following location http://galaxieconquest.astahost.com (the domain) in the subdirectory of cookie_login which is a subdirectory of the cgi-bin, which to me is not normal. The file cookie_login is the name of a file that you have in your cgi-bin right? And it is supposed to get called somehow and then act on the members,txt file which in turn looks for those that have had a cookie set by the cookie_login.cgi or cookie_login.pl, but the problem here is that the cgi-bin is not part of the public_html (they are seperate directorys), you are going straight to that filein the cgi-bin which is out of the web space (public_html).

I do know enough about perl to see how you need to set up the file so it will work for you. I would look at possibly using a database instead of just cookies (people can turn them off) and use sessions, but of course that is up to you. I will go to the site you mentioned an see what the script is supposed to do and where you need to set the members.txt file and how to call the cookie_login.cgi or .pl.

KnightEagle Posted Aug 29 2005, 04:49 AM
Well modified the shebang or what ever you want to call it. Kept changing it till it got back to the original. I have the script on astahost server. The script I got from this site please check it out. there address is http://www.custom-cgi.com/free/cookie_login/ I can get the login page open just fine the instructions tell me to set all parts to what such as Step 6. CHMOD all the .cgi scripts 755 (except comm.cgi, CHMOD 644) CHMOD members.txt 666 which i did when I try the demo as user name and demo as the password it says Error: Unable to open members file. When i try to make new pasword it says Error: Unable to open members file, the file 'http://www.galaxieconquest.astahost.com/cgi-bin/cookie_login/members.txt' does not exist. but the page does. Made copys and placed it in both locations. I just dont know what to do at this point.
Houdini Posted Aug 27 2005, 06:02 PM
Your code if it were origionally login.cgi it is possible that it was perl but the 500 error from an apache server is a cgi program crashing you might need to set an .htaccess file in the root directory that calls the login.cgi could you show the code in a post like this snippet of perl?
first check your shebang or hash bang at the very top of the file like this

CODE
#!c:\apachefriends\xampp\perl\bin\perl.exe

If that is not set it can't find the perl.exe and won't work the above code is for my own local server Win XP Pro running Apache with Perl 5 PHP, and MySQL database server.

Then the rest of the code should look something like this if it is Perl

CODE
$result=$ENV{'QUERY_STRING'};

&set_params;

if ($logem{$result} eq "Y")
{&notification("L");}
if ($email{$result} eq "Y")
{&notification("M");}

print "Content-type: text/html\n\n";
print "$msg{$result}\n";

sub set_params
{
#The full path to your error log (not server log!) file.
$errorlog="c:/apachefriends/xampp/cgi-bin/birdtrap.dat";

#The e-mail address of the person to notify when an error occurs.
#Be sure to put the \ backslash before the \@ at sign!!!
$notify="your\@yourdomain.com";

#The name of your site
$sitename="NukeXtra PHP-Nuke to the Max";

#The link the reader should follow home.
$returnlink="http://nukextra/test/";

#This is the URL to the directory holding your images.
$imageurl="http://nukextra/eimages";

You should be able to use the she bang of #!/usr/bin/perl/perl.exe
or#!usr/bin/perl just try that first because Perl is not html and won't work at all, the server error is probably because your shebang or hash bang is
KnightEagle Posted Aug 27 2005, 05:27 PM
just cant get it to work quess im going to have to breack out the books and see where the problem lies. hope my red hat book or peral for dummies can help. Think I need to get the cookies working first before the members.txt page will start to work. Will load a second copy of the cookies under a diferent name so I can have a base copy to ref from in case I mess up the one Im working from. Hey houdini do you have ICQ?
KnightEagle Posted Aug 27 2005, 03:15 AM
the script Im using is load on astahost I can get iyt to where you type in demo and the the password demo and then it says cant open members page. or when i go to make new user put in everything and same thing happens. getting a little tiffed at it but i will keep trying cant think of what I doing wronge.
KnightEagle Posted Aug 26 2005, 04:10 AM
Sence I downloaded the script from Custom.cgi which is a free web program for login use. I've been looking at what I have and it I see that there is something missing with the first just cant put my finger on it. So that explans why I'm getting the code 500. With the other from Custom.cgi I'm getting 400 or was it 404 code that I thing I need to make a link to the right page. But I'm starting to make some headway with it. Not into making any money of the site that I'm making doing it for fun. So the script I found is free just have to keep the information from them giving them credit for the code not a bad price I say. I just have to find the write code line to edit and it still work the free script doesnt come with alot of how to information. So if you could go and get it. And look at it then past what to do and where here. that could help others as well the web site is http://www.custom-cgi.com/free/cookie_login thanks for the help. I did find the line for the error page that the script shoes you when you test the login page. Thats a start I think.
Houdini Posted Aug 25 2005, 04:44 PM
AN http error of 500 to 505 is an internal server error, In the case of 500 it is and Internal Server Error. This code indicates that a part of the server (for example, a CGI program) has crashed or encountered a configuration error.

I would check your Perl program or possibly find out about the configuration of the server which is an Apache running on a unix based machine possibly linux (just a guess), there is something wrong with that script.

Since you are running a server side script like Perl then that is the most probable cause of your problems, have you considered trying PHP with MySQL also available on astahost and millions of scripts for them both?

Sorry to hear you had a problem with an XAMPP install I have never had a glitch and I have been using it for going on three years now, ever since 2002 anyway.

This is all no help to me i cant under stand sorry but you need to explain more

Comment/Reply (w/o sign-up)

iGuest
I need somebody who can take the code to a chat script I bean working on seven years ago and create a registration login, user management script for it and then COMBINE the two so not only is the chat room protected, but users have to register to chat and the registration script adds the username to the username window and database file of the chat script. The chat script is cgi driven, a webchat. I created this from several scrapts abandoned over the eyars, but really like the format... it just does not have a registration function and is useless without one. thanks!

-lasvegan

Comment/Reply (w/o sign-up)

KnightEagle
Looking over the code and I think I nerrowed it down to the common file. think there is a error in the coding. Going to run it throught my editor see what I get.

Comment/Reply (w/o sign-up)

KnightEagle
I'm beging to think that the site doesnt allow the use of certain scripts. I've tryed placing the members file in defferent locations and even tryed thr local area also pointed the way to the file still get the same area. Im going to have to just forget it for now. But If I cant get it to work there be no use to do anything else here. for I need the cookie to power the site so to speak. for each page reacts to the cookie as the user proceeds throught... Now does astrahost have a cookie login script that the members can place on there pages or do they allow ys to do it. I'm sitting here with my book open trying to fig what is wronge???????

Comment/Reply (w/o sign-up)

Houdini
Looking closely at your post I think I know why your text file can not be found. Here is the error that you quoted from the post...

QUOTE
Unable to open members file, the file 'http://www.galaxieconquest.astahost.com/cgi-bin/cookie_login/members.txt' does not exist.


That tell me that the program is looking for a file named members.txt that is in the following location http://galaxieconquest.astahost.com (the domain) in the subdirectory of cookie_login which is a subdirectory of the cgi-bin, which to me is not normal. The file cookie_login is the name of a file that you have in your cgi-bin right? And it is supposed to get called somehow and then act on the members,txt file which in turn looks for those that have had a cookie set by the cookie_login.cgi or cookie_login.pl, but the problem here is that the cgi-bin is not part of the public_html (they are seperate directorys), you are going straight to that filein the cgi-bin which is out of the web space (public_html).

I do know enough about perl to see how you need to set up the file so it will work for you. I would look at possibly using a database instead of just cookies (people can turn them off) and use sessions, but of course that is up to you. I will go to the site you mentioned an see what the script is supposed to do and where you need to set the members.txt file and how to call the cookie_login.cgi or .pl.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3
Similar Topics

Keywords : needed, create, login, script, perl, cgi, script

  1. Need To Install Script - $10
    (5)
  2. Simple Perl Script...
    (1)
    I want to know the perl path to include at the beginning of the file....so that my perl scripts will
    run properly... Or is it ok to make a cgi-bin directory and put my perl scripts in it? Any reply is
    appreciated. cpn....
  3. Share Your CGI Scripts Here
    (1)
    If You Looking CGI Script or you want share information about it please comment here /cool.gif"
    style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> Stop using those horrible
    colors, fonts and font-sizes. ....
  4. Password Reminder And Password Change .htaccess
    I need a script to change password (4)
    Hi, I use .htaccess to protect the members area of my site. I use a script called register.pl
    (search hotscripts and you'll see it) This script takes the username and password provided by
    the user and then enters the username and the encrypted password into the password file. What I
    want to do is, along with the username and password being taken, I want to also take the email
    address and when the user forgets his/her password all he has to do is type in the email, and the
    password will be sent. Thanks in advance, /smile.gif" style="vertical-align:middle" emoid="....
  5. I Need Help With .htaccess To Create A Login Form
    I need help with .htaccess to create a l (0)
    I want to create a simple html form which submits the information to a processor which in turn
    checks the login and either lets them access the members area or takes them to the login failed
    page. I tried a script which take the username and password and then puts it in the format
    http://username:password@mydomain.com/protected/ bu the problem with that script is that if the
    password is wrong then the login box pops up and this doesnt close even after hitting the cancel
    button about 4-5 times. Is there any better way to secure a members area (an entire folder) withou....
  6. Sockets And Perl
    for a chat script (1)
    Okay, I was trying to write a chat script for perl with tk for the GUI on active perl 5.8. But
    whenever I use the $socket->listen() function to connect to the client, the script always hangs on
    me. Any ideas as to how to avoid this problem (I've tried numerous codes including the one from
    webmonkey).....
  7. Simple Problem W/ Perl
    I can't get this hello world script (5)
    Here's my code: CODE #!/usr/bin/perl # print "Content-type: text/html\n\n"; print "Howdy,
    world!"; I saved it in my cgi-bin with 777 permissions and It goes; QUOTE Internal Server
    Error The server encountered an internal error or misconfiguration and was unable to complete your
    request. Please contact the server administrator, webmaster@supper.astahost.com and inform them of
    the time the error occurred, and anything you might have done that may have caused the error. More
    information about this error may be available in the server error log. Additiona....
  8. Perl Script
    (0)
    Hey everyone, got a problem with a Perl script I'm trying out. In my Perl script, I have the
    user input a number to dynamically display a number of text form fields in which they enter figures.
    At the bottom, there will be a button to give the sum of all the numbers in the text
    fields--that's where I'm stuck, I got the text boxes to show up alright, but that's
    about it. I thought I might use JavaScript, but that didn't turn out to well. I was thinking of
    using arrays for the name referencing in the javascript part, but I couldn't figure that out e....
  9. Crypto Program
    A perl "script" to protect data (0)
    If you'd like to protect you doc without the standard program and algorithms you'll fide it
    useful, Now the only big problem is the ARRAY pased to the subs, in fact I can't pass 2 @ at
    the same Sub so I have to use a global array(@plus) in the subroutines, SomeOne knows if is it
    possibile to pass 2 @ to a sub? if yes how? CODE #!/usr/bin/perl #************Random Signature
    V1,0******************# #* CodeName: Crypto v1.7 alpha                     *# #* Coder: K22 -
    www.klakice.astahost.com;         *# #* Date: 07/11/2004;                                ....

    1. Looking for needed, create, login, script, perl, cgi, script

See Also,

*SIMILAR VIDEOS*
Searching Video's for needed, create, login, script, perl, cgi, script
advertisement



Help Needed To Create Login Script With Perl/cgi - Need Script

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com