473,668 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to build a site with access privieges?

Hi all,
I want to build a site which will allow me to restrict a users access
based on assigned privileges and render pages with user-specific
information.

Some other features I would like to have are...

i. to log failed access attempts.
ii. to make information(tex t) on certain pages easily editable by a 1
group of 'non-technical' users.
iii. a database system for storing data gathered from forms.

I have a basic understanding of html/javascript, and would appreciate
any advice on where to concentrate my education to achieve the results
above.
My first guess would be PHP/MySQL which is why I'm posting here?
Are there any ready-rolled solutions available that could be adapted?
I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)

Any pointers most appreciated,

Dave.
Jan 26 '07 #1
8 1636
Um... people like you scare us. You sound like you have little
experience making web pages, little experience programing or if you do
it is something like vb and no mater what you say you really do not
know what you are talking about.

But I could be wrong, i am often, and this could just for fun. Then I
would recommend this book: PHP and MySQL Web Development
http://amazon.com/s/ref=sr_pg_3/102-...k%3Aphp&page=3

That book will work and covers most of what you are looking for and
would be an excellent start if A) you know how to program and B) you
know and have experience how to build a database

If ether of those two are a no then um....
I can't help you and should start with one of the learn in 24 hour
books and talk to someone who has done this.

Good Luck
Matthew

Jan 26 '07 #2
Dave wrote:
Hi all,
I want to build a site which will allow me to restrict a users access
based on assigned privileges and render pages with user-specific
information.

Some other features I would like to have are...

i. to log failed access attempts.
ii. to make information(tex t) on certain pages easily editable by a 1
group of 'non-technical' users.
iii. a database system for storing data gathered from forms.

I have a basic understanding of html/javascript, and would appreciate
any advice on where to concentrate my education to achieve the results
above.
My first guess would be PHP/MySQL which is why I'm posting here?
Are there any ready-rolled solutions available that could be adapted?
I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)

Any pointers most appreciated,

Dave.
Try installing Joomla and a couple of its components
Jan 26 '07 #3
Rik
Dave <daveNOSPACEmat thewsA@Tbigfoot _DoT_.comwrote:
Hi all,
I want to build a site which will allow me to restrict a users access
based on assigned privileges and render pages with user-specific
information.

Some other features I would like to have are...

i. to log failed access attempts.
ii. to make information(tex t) on certain pages easily editable by a 1
group of 'non-technical' users.
iii. a database system for storing data gathered from forms.

I have a basic understanding of html/javascript, and would appreciate
any advice on where to concentrate my education to achieve the results
above.
My first guess would be PHP/MySQL which is why I'm posting here?
PHP & MySQL have the advantage of being free and having a large following,
so there are plenty people to ask questions. You're free to choose from a
lot of different server-side languages and databases though.
Are there any ready-rolled solutions available that could be adapted?
Probably, I don't use ready-rolled solutions. A problem that comes with
PHP being an 'easy' language is there are numerous examples out there that
seem to work but are actually quite Bad.
I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)
Well, to give you some pointers to get started:
- If you're using Windows, use XAMPP for your setup. It will save you a
lot of headache, precise configuration issues you can deal with later when
you know a little bit more, for now it's standard settings will usually
suffice.
- Start learning PHP here: http://www.php.net/tut.php
- Refer to http://www.php.net often. Especially look at the user
contributed notes that accompany most of the functions, they will help
your understanding a lot.
--
Rik Wasmus
Jan 26 '07 #4
"Dave" <daveNOSPACEmat thewsA@Tbigfoot _DoT_.comwrote in message
news:fY******** **********@news fe3-win.ntli.net...
Hi all,
I want to build a site which will allow me to restrict a users access
based on assigned privileges and render pages with user-specific
information.

Some other features I would like to have are...

i. to log failed access attempts.
ii. to make information(tex t) on certain pages easily editable by a 1
group of 'non-technical' users.
iii. a database system for storing data gathered from forms.

I have a basic understanding of html/javascript, and would appreciate any
advice on where to concentrate my education to achieve the results above.
My first guess would be PHP/MySQL which is why I'm posting here?
Are there any ready-rolled solutions available that could be adapted?
I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)

Any pointers most appreciated,

Dave.
What you're asking is not a trival thing and if you're just beginning to
learn server side programming that's quite a lot to bite off.
Jan 27 '07 #5


On Jan 26, 12:42 pm, Dave <daveNOSPACEmat thewsA@Tbigfoot _DoT_.com>
wrote:
Hi all,
I want to build a site which will allow me to restrict a users access
based on assigned privileges and render pages with user-specific
information.

Some other features I would like to have are...

i. to log failed access attempts.
ii. to make information(tex t) on certain pages easily editable by a 1
group of 'non-technical' users.
You might want to look at the MediaWiki program. It uses PHP and MySQL
to create articles. It's what <a
href="http://wikipedia.org/">Wikipedia </aruns on. You can find it at
http://www.mediawiki.org.
iii. a database system for storing data gathered from forms.

I have a basic understanding of html/javascript, and would appreciate
any advice on where to concentrate my education to achieve the results
above.
My first guess would be PHP/MySQL which is why I'm posting here?
Are there any ready-rolled solutions available that could be adapted?
I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)

Any pointers most appreciated,

Dave.
Jan 27 '07 #6
mv******@gmail. com wrote:
Um... people like you scare us. You sound like you have little
experience making web pages, little experience programing or if you do
it is something like vb and no mater what you say you really do not
know what you are talking about.

But I could be wrong, i am often, and this could just for fun. Then I
would recommend this book: PHP and MySQL Web Development
http://amazon.com/s/ref=sr_pg_3/102-...k%3Aphp&page=3

That book will work and covers most of what you are looking for and
would be an excellent start if A) you know how to program and B) you
know and have experience how to build a database

If ether of those two are a no then um....
I can't help you and should start with one of the learn in 24 hour
books and talk to someone who has done this.

Good Luck
Matthew

Hehe...be afraid....!!
I understand your concern, and I am aware of the complexities and
realise this is no small task.
Thanks for the link, I will check it out.

Cheers,

Dave.
Jan 27 '07 #7
Rik wrote:
PHP & MySQL have the advantage of being free and having a large
following, so there are plenty people to ask questions. You're free to
choose from a lot of different server-side languages and databases though.
>Are there any ready-rolled solutions available that could be adapted?

Probably, I don't use ready-rolled solutions. A problem that comes with
PHP being an 'easy' language is there are numerous examples out there
that seem to work but are actually quite Bad.
>I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)

Well, to give you some pointers to get started:
- If you're using Windows, use XAMPP for your setup. It will save you a
lot of headache, precise configuration issues you can deal with later
when you know a little bit more, for now it's standard settings will
usually suffice.
- Start learning PHP here: http://www.php.net/tut.php
- Refer to http://www.php.net often. Especially look at the user
contributed notes that accompany most of the functions, they will help
your understanding a lot.
--Rik Wasmus
Thanks Rik, looks like a great site.

Cheers,

Dave.
Jan 27 '07 #8
Dave wrote:
Hi all,
I want to build a site which will allow me to restrict a users access
based on assigned privileges and render pages with user-specific
information.

Some other features I would like to have are...

i. to log failed access attempts.
ii. to make information(tex t) on certain pages easily editable by a 1
group of 'non-technical' users.
iii. a database system for storing data gathered from forms.

I have a basic understanding of html/javascript, and would appreciate
any advice on where to concentrate my education to achieve the results
above.
My first guess would be PHP/MySQL which is why I'm posting here?
Are there any ready-rolled solutions available that could be adapted?
I'm going to setup an Apache webserver this weekend and experiment a
little, but I don't want to have to re-invent the wheel... ;)

Any pointers most appreciated,

Dave.
So far as the access restriction, it's done with session vars that are
set upon a successful database query.

You run the queries based on the user & password entered into the login
page. You don't necessarily have to use the results of the query,
you're just checking to see if the user & PW matched (i.e., the query
returns a row of data), but the actual query could return their email
address, full name, whatever. It doesn't need to return the user or
pass because they've already entered that into the login form; you're
just checking to make sure they match.

If the query is successful they've entered the right info, you set the
appropriate session var and continue loading the desired page. If not,
you do an update query to another table, logging the incorrectly entered
info (plus any other pertinent info you may want to track, such as the
IP, time, etc.), then redirect to a "Sorry, wrong credentials" page.

You can also have the query pull a 'group' field which would grant
access to certain pages for certain users. This would be another
session var.

Each page you want to restrict first checks for the session vars, and if
they're not present, redirects to an "Oops" page, otherwise continues
loading as normal.
Jan 27 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5597
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without Programming) This article will teach you step-by-step how to add interactive database-driven capabilities to your existing web site. When the steps
4
1249
by: Dave Diehl | last post by:
Has anyone heard of a problem with a rebuild of one application causing a problem with another app on the same server? I have two asp.net applications on the same Win2000 server, each with it's own web site (i.e. IP, root folder, etc.). Each accesses it's own SQL Server 2000 database. Let's call them App A and App B. If I open a page in App A that starts a long-running process...so it's sitting there in perpetual "loading page" state...
7
8228
by: teliot | last post by:
I'm just starting to use VWD Express. Supposedly, if I use a separate file (code behind) for my web forms, it should build them into a DLL into the Bin folder. However, no bin folder was automatically created when I create the project, nor when I build the website. And no DLL was placed anywhere in my website folder. How do I build the code-behind files so they would be in the bin folder???
2
1610
by: tormod | last post by:
I'm using Visual Studio 2005 professional edition and try to build a web site built in c#. The solution consists of about 20 class library projects and one web site. The web site references the class libraries in the project to project fashion. My problem starts when I try to build the solution. The compilation of the projects completes fast, but after that visual studio goes into an idle state for about 30 seconds before it compiles...
1
4255
by: | last post by:
I'm having a problem finding the cause for this problem. I have a solution in Visual Studio 2005 that contains two projects -- a Web Site and a Class Library. The web site references the class library. After the project became larger, the build process would sometimes fail with no errors. The "quick fix" for this was to rebuild the whole solution and things seemed ok. When this didn't solve the problem any longer, I went to the property...
1
1391
by: John Dalberg | last post by:
The "Build Web Site" build option seems to do a complete build even when no changes have been made. Is there a way to do a build only when a source file has changed? This is a web site app. John Dalberg
5
7819
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/li b .) at Build.PL line 5.
0
1225
by: Pedro Vera | last post by:
Greetings, I have a plain VS 2005 VB.net solution that holds a single web site. The web site builds fine when I run it locally, and if I copy it as-is to my remote server everything runs. The problem is that I run Build - disappearing. I even tested my local copy of VS 2005 against a bunch of my other projects, and in every case the project works properly and I get a precompiled site when I request Build -Publish Web Site.
25
2791
by: pereges | last post by:
Hello, I'm trying to build a database driven website for a library management system. The database is stored on a remote server which all of my team mates can access. I've installed MySQL, PHP and Apache on my machine. I'm a beginner and I really don't understand how to proceed. My biggest problem is how to connect to the database on remote mysql server ? Does php allow this kind of thing ? I'm interested in a web interface on my machine...
0
8459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8889
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7391
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2782
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.