Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old February 28th, 2007, 05:46 PM
Sleepingkirby's Avatar
Sleepingkirby Sleepingkirby is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 47 Sleepingkirby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 10 sec
Reputation Power: 2
Esthetics, centralized module or not

This is for a wamp system... I guess (win 2k, apache, mysql, php) but it has very little to do with the operating system.

I'm writing my own webpage content management system (although I'd prefer to call it a html parser because that's what it really is >.<).

Here's the situation:
I have a main.inc.php that does all the work. Everything from getting username, ip address, login and log offs, and generating the webpage from templates and what-naught. A page just needs to have 3 variables in it and include the main.inc.php for it to generate a webpage. The system is designed to allow users to have their own sections, let alone blogs and what-naught (i.e http://mywebsite.net/sleepingkirby/index.php, http://mywebsite.net/swordkirby/index.php, etc.).

Here's the question:
Is it esthetically better to make the blog software for each user included in the main.inc.php or in their respective directories. Just looking fo rsome advice on that.

Reply With Quote
  #2  
Old March 6th, 2007, 10:04 PM
dschreck dschreck is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 44 dschreck User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 53 sec
Reputation Power: 2
RE: Esthetics, centralized module or not

lksfjslkjdfs
stupid captcha didn't like what i typed and made me have to hit the back button and i lost everything i just typed... anyways....


....

uhm, oh yeah, basically i do it this way: i have my index.php just check the URI for a section. the sections are stored in my mysql db, along with sub sections and modules etc etc etc (lots of borign stuff)

anyways, if a section is found, i simply just include that section and run that code.

(basically it's the factory design pattern)

since you don't need the blog stuff to run main.inc.php you don tneed to include it every time you run it. but you should only include it when that section is called up.

so if you have an index page for that section that *does* need the blog stuff, along with several other items, you just make a factory for that section's sub page, and that sub page will do all the work. and you make another sub page that will handle other things in that section...

...


that help a little? iono, that was kind of a bad explanation of the idea, hope it helps tho.

Reply With Quote
  #3  
Old March 6th, 2007, 11:59 PM
Sleepingkirby's Avatar
Sleepingkirby Sleepingkirby is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 47 Sleepingkirby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 10 sec
Reputation Power: 2
RE: Esthetics, centralized module or not

No that's actually really good... O.O I'll do that. It'll probably increase run time too.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Esthetics, centralized module or not


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway