473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Simple User Authentication application

121 100+
Greetings everyone.

I am a college student studying in the University of Technology, Sydney.

PHP is not in my studying plan, I am taking subjects about J2EE in this semester.

However I do have a strong interest into studying PHP, which is a world-famous open-source server scripting language, and started my personal "lab" online:
mattmao.php0h.com

One of our group assignment requires a secured and restricted section inside my site, so that only the members of my group will grand the access to that particular section.

To make this simple user authentication done, I have been thinking about it during these days and figure out one "too easy" approach:

Embed the list of usernames and passwords in a .xml file called "entrycheck.xml" and put it inside my server's root folder.

Then, use php to generate a entrycheck.html page which will compare the user input from client side against the existed list on server side to tell if this user can be given the access to the restricted area.

Then any http requests from that client (or from that session) would be accepted so they can enjoy posting threads later (I uploaded a SMF forum into my site, and, I found they didn't allow it, so I have do "hard-code" a functionality that can solve this problem).

I had no knowledge about internet security and user authentication at all, so this little job is pretty hard for me at such an early stage of learning PHP.

I know my design is too awful, too simple and hackers-prone, I just cannot introduce another tier of the MySQL database. I am running out of time to study yet another brand new computer language little by little from the scratch...

Thus, I have the question, is my design "conceptually acceptable" and "feasible"? Any suggestions upon this?

I got experience with J2SE and am doing JSP/Servlet programming, but there are few web hosting services that support J2EE so I must use a free PHP hosting service to work it out.

Many thanks for any help in advance...



Regards,

mattmao

------------------------------

I should have searched through the forums before asking for help, I got some good solutions from other threads. But they are a little bit "sophisticated" to me.
Like this one:
http://www.thescripts.com/forum/thre...ntication.html
and some more...

I am confused with the languages in my head...
Aug 17 '07 #1
4 2044
ak1dnar
1,584 Expert 1GB
Welcome to TheScripts.com mattmao.

Since you don't have a idea to Work with MySQL tools, The best thing is you can do for now store the XML file outside the web root.Put it to a higher level from the web root dir.Others Cant Access it Directly Then but PHP can. Check With your Hosting Providers FTP Account.
Aug 17 '07 #2
mattmao
121 100+
Welcome to TheScripts.com mattmao.

Since you don't have a idea to Work with MySQL tools, The best thing is you can do for now store the XML file outside the web root.Put it to a higher level from the web root dir.Others Cant Access it Directly Then but PHP can. Check With your Hosting Providers FTP Account.
Yeah, the structure of my website space is like this:

Linux simulation:
cmao:>cd ~
cmao:>ls -F
cmao:>file.txt, entrycheck.xml, www/

Where www/ refers to the "root" of the URL link, in which contains the index.html page.

Thanks for your help. Now I will use the "Mr-know-all" www.google.com to help me make it work.
Aug 17 '07 #3
ak1dnar
1,584 Expert 1GB
Yeah, the structure of my website space is like this:

~/
/www/index.html
file.txt
entrycheck.xml

where the ~/ refers to the root.

Thanks for your help. Now I will use the "Mr-know-all" www.google.com to help me make it work.
Good Luck, I am really appreciating your thoughts. do the Google ! and Post back to forum any time.
Aug 17 '07 #4
mattmao
121 100+
OK, I will post my work here if it works...
Aug 17 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Frank Esser | last post by:
Hello, I have got a specific question on user authentication. My customers usually use their workstations all together as a kind of public terminal. This means one of the users in the team...
5
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but...
8
by: Joe | last post by:
I check for the NTLogin of a user by Page.User.Identity.Name, but when I put the app on the server the value for Page.User.Identity.Name is "" I had the <allow users="*/> attribute commented...
4
by: Trevor Andrew | last post by:
Hi There, Hopefully this isn't too difficult a question to express here. I have a 3 tier application. 1. Presentation Tier: ASP.NET web application. 2. Middle Tier: ASP.NET Web Services that...
3
by: Michael Glaesemann | last post by:
Hello all, Recently I've been thinking about different methods of managing users that log into a PostgreSQL-backed application. The users I'm thinking of are not necessarily DBAs: they're...
2
by: J | last post by:
Hello. I apologize if this isn't the appropriate group for this question but I was wondering if it's possible to allow regular windows domain users to change their passwords through an .asp page? ...
3
by: Asaf | last post by:
Hello, I have created a web service name "TestWS" and published it to my SBS2003 server that uses IIS6 as a web server. I have set NO anonymous access to TestWS virtual directory and I have...
3
by: mario.colorado | last post by:
Hi! Does anyone know why it is that when I use: Request.LogonUserIdentity.User.ToString() I get something like: S-1-5-21-2268419..........
6
by: MuZZy | last post by:
Hi, I am looking to find a way to get currently logged in user's object GUID without querying ActiveDirectory. For example, when i log in to my laptop from home, I'm not on the office network so...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.