OZONE Asylum
Forums
Server-Side Scripting - Oh my!
PHP Script performance
This page's ID:
28258
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I considered that maybe something wasn't clear. Including a file only occurs when that code is executed ... so in this ([i]very simple[/i]) example: [code] $x = "a"; if($x == "a") { require_once("a.php"); } else { require_once("b.php"); } [/code] [i]b.php[/i] is never called, even though there is an include statement. So if you break your code up that way, you won't load unnecessary files; it's a better than just having 20 include lines at the top of the file... especially when you deal with a massive app. Regards, DC
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail