472,989 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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(text) 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 1603
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(text) 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 <daveNOSPACEmatthewsA@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(text) 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" <daveNOSPACEmatthewsA@Tbigfoot_DoT_.comwrote in message
news:fY******************@newsfe3-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(text) 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 <daveNOSPACEmatthewsA@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(text) 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(text) 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
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...
4
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...
7
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...
2
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...
1
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...
1
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...
5
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:...
0
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...
25
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.