TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-10-2008, 08:33 PM   #1 (permalink)
The Contributor
 
marxx's Avatar
 
Join Date: Sep 2007
Location: Finland
Posts: 45
Thanks: 3
marxx is on a distinguished road
Default How do you boot your site?

I've just wondering here how ppl "boot" theyr sites. So maybe me and some others can learn here one or two things.. ;)

Here is my boot.

first, every page have on start inlude to core.php file.

Core has most important php definitions such as session start and define(this, onthat); things..
At the end of this file we are include init.php.

init.php has all class includes and function files includes.
Then when all core and init stuff is done, our site are almost ready.
then we just call headers from template class file and build our content and last but not least call our footer from template class.

Now, do you guys/gals use lot of classes and functions? I have own build template class (now, here is only header, navigation and footer) and database class. Then in functions I use one function file for most important functions and file for global functions.
All depence what we are running.. If site contains member system, then we need member class etc..

Anyway, I don't have any good point for this threat, just want to know how others start sites and such. =)


Thanks..
Send a message via MSN to marxx
marxx is offline  
Reply With Quote
Old 04-11-2008, 08:22 PM   #2 (permalink)
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

If I'm building a full fledged CMS it usually goes something like this

--Check if the site is active
--initiate session
--Check for IP ban
--Check for 'remember me' cookie and login
--Includes called module

I use a few main classes- a database class, a core class, a member class, a templating class, a globals class (post,get,etc), a purification class, a loader class.

All the classes are called at start up seeing as the bootstap makes use of all of them.
__________________
"What everyone seems to forget is that while knowledge certainly is something - it's the implementation of knowledge that brings power" - Andres Galindo.
TlcAndres is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:41 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design