Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

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 Dev Shed Forums Sponsor:
  #1  
Old June 7th, 2004, 08:45 AM
Admin Admin is offline
Developer Shed
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Posts: 961 Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Article Discussion: Building a Site Engine with PHP, Part 1

Content management systems are becoming very popular, but what if you took it a step further than that? That’s exactly what I plan to show you how to do in this series of articles. I’m going to explain how to build a site engine. A site engine is a core code base and database that can run multiple sites that are completely different while all running in unison, using all the same code, yet separate from each other.


Read the full article here: Building a Site Engine with PHP, Part 1

Reply With Quote
  #2  
Old June 8th, 2004, 11:32 AM
lo_fye lo_fye is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: toronto ontario / zagreb croatia
Posts: 2 lo_fye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to lo_fye Send a message via AIM to lo_fye Send a message via Yahoo to lo_fye
Thumbs up don't leave us hangin', ok?

Hey James - that's the beginning of an excellent article. I look forward to the next N parts in the series. Please don't be like some other devshed authors and leave everyone hangin', never producing the subsequent articles necessary to realize your vision. Thanks,

lo_fye

Reply With Quote
  #3  
Old June 8th, 2004, 02:44 PM
Swift-One Swift-One is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 Swift-One User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Keep the other 4 coming

Great job on the setup. Please keep them coming. I am looking forward to the other 4.
Please don't forget us!

Reply With Quote
  #4  
Old June 9th, 2004, 02:08 PM
MooMooCow MooMooCow is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 15 MooMooCow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Probably the best "dumbed down" version of explaining a CMS I've ever read in my entire life. Even I could read through it and understand the concepts (with the help of pretty pictures ) without going back and re-reading every other paragraph.

Reply With Quote
  #5  
Old June 11th, 2004, 09:46 PM
tfardella tfardella is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 tfardella User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the first installment of what looks to be a great series of articles. One question I have is what is the difference bwtween a plugin and a module?

Thanks!

Reply With Quote
  #6  
Old June 12th, 2004, 02:30 AM
dejaone dejaone is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 300 dejaone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 7 m 22 sec
Reputation Power: 5
I've built a min site engine or content management system for managing my site in php. The article offers many additional insights.

Reply With Quote
  #7  
Old June 13th, 2004, 11:45 AM
mikey77 mikey77 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Taipei, Taiwan
Posts: 5 mikey77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Teaser

I've been developing with PHP and MySQL for awhile now and after banging my head on the wall countless times, I thought I'd developed a kindof site engine... however, I was really happy to see that someone else had thought this through. I'm looking forward to seeing the following articles -- please, please follow through!

Cheers!

Reply With Quote
  #8  
Old June 16th, 2004, 11:09 AM
jaimz jaimz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 23 jaimz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 10 sec
Reputation Power: 0
hey guys, sorry about taking so long to check the thread, I didn't realize the article had been published yet :P thanks for all the great feed back

tfardella: to answer your question, a the plugins are like the main controller over a group of modules and blocks, it kind of provideds all the functions and data a block or module will need.

a module on the other hand, processes all the actions that a block produces.

Say you have a block that has a form that will post the text from a text box to the table cell above the form ( like a small non realtime chatroom) the plugin would get all the info for the block to be able to show the already posted text, while the module would contain the scripts to add, edit, and delete text.

The second part is up btw, it's the one that talks more about the plugins and modules

Reply With Quote
  #9  
Old July 24th, 2004, 12:30 PM
nmphpwebdev nmphpwebdev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 94 nmphpwebdev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 30 m 53 sec
Reputation Power: 5
Here are some helpful tidbits about site management

I read thru the first part of the article and the descriptions given sounded awful familiar.

The wheel is being reinvented. The site management system being described here is call PHP - Nuke (http://www.phpnuke.org).

It is awesome. There are quite a few resources about this site management / portal system.

Hope this will help in those who have questions about modules and blocks and stuff. I know that really confused me when I stated looking at it.

Reply With Quote
  #10  
Old July 24th, 2004, 03:07 PM
dawm dawm is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 dawm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ignore what nmphpwebdev said, this is not based off of phpnuke or postnuke or any nuke for that matter. its based off a site engine that hasnt been released. you havent seen this code anywhere before, because it hasnt been publicly available.

I'm still working on a working copy of the site engine based on these articles, the only thing im stumped on is how modules actually work and how to call a needed module for the requested page/function. i was thinking of making the modules classes but then that gets into a whole other problem. But I will keep updating you guys as things progress, but I wont give you a completed package either, just helpful hints here and there.

But dont give up, these articles will help you produce a working engine, if you be patient and follow each step and understand how everything works. And it is possible to use it on PHP4, you just have to write your own XML parser.

Reply With Quote
  #11  
Old August 8th, 2004, 09:04 PM
NikLP NikLP is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 NikLP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 sec
Reputation Power: 0
Exclamation

Quote:
Originally Posted by jaimz
hey guys, sorry about taking so long to check the thread, I didn't realize the article had been published yet :P thanks for all the great feed back

tfardella: to answer your question, a the plugins are like the main controller over a group of modules and blocks, it kind of provideds all the functions and data a block or module will need.

a module on the other hand, processes all the actions that a block produces.

Say you have a block that has a form that will post the text from a text box to the table cell above the form ( like a small non realtime chatroom) the plugin would get all the info for the block to be able to show the already posted text, while the module would contain the scripts to add, edit, and delete text.

The second part is up btw, it's the one that talks more about the plugins and modules


Dude, with respect, what the hell are you talking about?
I've read the article and this thread a couple times each, and at no point could I get enough information together to work out what a plugin/module/block was and how they each differed from each other. Perhaps calling them by three different names that didn't all mean the same thing would be helpful - like 'data controller', 'output processor' etc or something... I can't make head or tail of any of the articles because it's unclear. Not even a picture of what a module actually physically is, likewise any of the others. I don't get it.

I appreciate the work and the code looks solid and will be helpful, but it appears that the age-old problem of communication breakdown is upon us. Maybe it's my lack of development experience in this area that's causing the confusion.

Anyway, I'm just frustrated cos I want to use all the articles and currently feel like I can't...


Thanks anyway though...

Reply With Quote
  #12  
Old March 28th, 2005, 06:44 PM
Eric256 Eric256 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 7 Eric256 User rank is Sergeant (500 - 2000 Reputation Level)Eric256 User rank is Sergeant (500 - 2000 Reputation Level)Eric256 User rank is Sergeant (500 - 2000 Reputation Level)Eric256 User rank is Sergeant (500 - 2000 Reputation Level)Eric256 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 57 m 23 sec
Reputation Power: 0
Cookies Versus Sessions

The author scares my quite a bit with his comments on this subject. He says that he uses cookies so that the user must be authenticated every visit so that they can't be spoofed. I'm not sure what that has to do one way or another with cookies versus sessions. The entire point of sessions is that you store a seceret key on the users computer (normaly via a cookie) that is then used to retrieve there session which would include there login information etc. The biggest advantage to this is that no information is stored on the users computer except for the session which will expire after a given amount of time.

Sessions then allow you to store per visit/session information and not worry about prying eyes getting the cookie. Even is someone steals your session it will expire eventualy. A cookie with username and password info would be good until the user changes his password though.

As far as security goes i've always heard that you should move from cookies (as data storage) to sessions, not the other way around.

I would be interested if the author has some more concrete examples of why he thinks cookies should be used, and why he thinks that sessions vs. cookies is an either or situation.

Just my 2 cents of course, but it made me cringe when I read this use of cookies.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Article Discussion: Building a Site Engine with PHP, Part 1


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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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