473,387 Members | 1,578 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,387 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 1622
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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,...

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.