Forum Moderators: coopster
if ( thingy == 1 ) {
insert heaps and heaps of echos here;
}
else if ( thingy == 2 ) {
insert heaps of more echos here;
}
if i put the heaps and heaps of echos into two external php pages and instead of echoing the content i include(); it, will this significant'y increase the speed at which the page loads? what i mean is, if thingy == 2, does the server have to load all of the content of thingy==1 before it can get to the content it need to display, thus slowing it down?
i don't know if any of this makes sense. please say so if it doesn't
More info at http://www.php.net/manual/en/control-structures.switch.php [php.net]
Probably your best answer would be to just try it. Set up a scenario and time it. Make sure the duration would be long enough to notice a difference, say 30 seconds to a couple of minutes. Anything under that would be hard to get a meaningful number.