Site includes - variables

Mitch Anderson mitch at metauser.net
Wed Jun 25 12:22:42 MDT 2003


I've been waiting for some traffic so i could create my filters :)

Quick question however... 

Whats the best way to create a site thats using lots of php functions?
Like how would the best way to implement include files and site wide
configuration settings.  Currently, this is how I have been writting my
site.

			index.php
			   |
			includes.php
			   |
	func1.php -- func2.php -- func3.php -- func4.php
			   |
			func_db.php

Does that seem logical?  Basically index.php(or any other page on the
site) would include includes.php, which includes all of the other
function php files (all containing different types of functions grouped
on common types)

Only problem with this is that having a site wide configuration variable
like the sites name, database connection info, URL, file locations, etc,
would have to be registered as globals...(or put in the file that will
be using them... which is undesirable, as a central place to manage them
is ideal) I was just wondering if there is a better way to handle this
or does that sound right?

any ideas would be appreciated.

Mitch

On Wed, 2003-06-25 at 12:03, Scott Pepperdine wrote:
> Just checking to see if the list works.  No traffic since I subscribed.
> 
> Thanks,
> 
> Scott
> 
> 
> Scott Pepperdine
> Integrated Medical Systems
> scottp at imshelp.com
> (801) 794-9520
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: list-unsubscribe at uphpu.org
> For additional commands, e-mail: list-help at uphpu.org
> 
> 





More information about the UPHPU mailing list