473,385 Members | 1,973 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,385 software developers and data experts.

CMS - Admin Controls

Hi, I'm in the middle of building a Content
Management System to be used by out school. It has
gotten to the stage where I'm going to have to
start building admin pages so that others can be
admins, So I'm going to have to rewrite several
pages to cater for this. What I'm wondering is,
what is the best way to store admin variables?
Should I put them in a table in MySQL or in a flat
file? Do you think that it would slow my server
down conciderably if I added another 3 sql querys
to every page and had 100 users on using the site
at once?

I'm running it on an IIS server (Server 2003)
which is not normal for me (I like my Linux), so
I'm just hoping it doesn't eat away all the memory
slowly throughout a day.

I know a couple of poeple have created and
contributed to CMS' before so if you have any tips
or pointers in this area let me know.
Sep 6 '05 #1
2 1457
Smitro wrote:
Hi, I'm in the middle of building a Content
Management System to be used by out school. It has
gotten to the stage where I'm going to have to
start building admin pages so that others can be
admins, So I'm going to have to rewrite several
pages to cater for this. What I'm wondering is,
what is the best way to store admin variables?
Should I put them in a table in MySQL or in a flat
file? Do you think that it would slow my server
down conciderably if I added another 3 sql querys
to every page and had 100 users on using the site
at once?


I'm wondering why you need 3 queries to read in the config. Tried joins?
Polymorphism?

I'd really have to try to make this go slow, even on a Microsoft platform.
If it is a problem write some cacheing code in PHP.

C.
Sep 6 '05 #2
admin variables?

why dont you use a table like ipb, i think it is, use. This being a
config table with the column names "config_name" and "config_value".

You can then use one query to pull out all the information.. then:

$sql = "SELECT * FROM `config`";
$dosql = mysql_query($sql,$connect);

while($item = mysql_fetch_assoc($dosql))
{
$config[$item['config_name']] = $item['config_value'];
}

...and then you have all of your config values?

You could even set access levels for all of your admins, to only pull
the variables that they are allowed to access by adding an
"access_level" to the table and changing the sql to "SELECT * FROM
`config` WHERE `access_level` <= '".$my_access_level."'";

How would 100 users be in the admin area? If thats what you meant by
the 3 more queries..

Sep 6 '05 #3

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

Similar topics

5
by: D E | last post by:
When using my web application manager (http://localhost:8080/admin) I forgot my password. Is there an XML file i can look at to remember/obtain (possibly even set). Thanks
2
by: Ken Fine | last post by:
(originally posted to one of macromedia's groups; no help, so hopefully someone here can help me out. I'm using VBScript ASP.) When designing administrative interfaces to websites, we often need...
1
by: J. Muenchbourg | last post by:
I'm new to the .NET programming, but I need to create an admin type page in asp.net whereas the user can add events with about 4 different field variables, and this all gets stored to an sql...
6
by: Chuck | last post by:
What's the difference between using "catalog node" and catalog admin node"? -- Chuck Remove "_nospam" to reply by email
9
by: Andy Sutorius | last post by:
Hi group, I am getting the "could not load type" error and I'm not sure how to debug. Obviously it's a namespace error but I don't see it. Below are code snippets. Yes, the files sit in a...
2
by: Jéjé | last post by:
Hi, I have create some webpart controls to use in sharepoint. these webparts are in a DLL and I have a resource file for the french language. after an IISReset, if the caller is a...
11
by: AnhTai | last post by:
Hi all, I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install from blastwave). This is my first time with MySQL so I don't have any exp with it. I have some troubles as: -...
4
by: savvy | last post by:
I'm developing a Garment Shopping Cart. On the Admin side, while inserting the each Product details, the user has to choose options of Colour Icons and Sizes for each Garment. All the colour icons...
7
by: buzzluck68 | last post by:
Hello, I have an in house application that we developed, but everyone who needs to use the program are not allowed to be local admins on their PCs. I was wondering if there was a way to code...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.