Hello all.
I have some general questions about INCLUDES in PHP. Perhaps it will sound dumb, but I want to be sure .
So, PHP (pseudo) code:
if (condition 1)
INCLUDE APPROPRIATE INCLUDE FILE
if (condition 2)
EXECUTE SOME CODE
So, my questions are:
1. Does PHP, while parsing such code, if condition 2 is met, anyway parses include file from condition 1 (without passing it to browser because condition 2 is met)?
2. Does PHP, while parsing such code, if condition 1 is met, anyway parses code from condition 2 (without passing it to browser because condition 1 is met)?
Upper questions are related to bandwidth, page size output and server execution dilema we have here. Thanks to any suggestions.
I have some general questions about INCLUDES in PHP. Perhaps it will sound dumb, but I want to be sure .
So, PHP (pseudo) code:
if (condition 1)
INCLUDE APPROPRIATE INCLUDE FILE
if (condition 2)
EXECUTE SOME CODE
So, my questions are:
1. Does PHP, while parsing such code, if condition 2 is met, anyway parses include file from condition 1 (without passing it to browser because condition 2 is met)?
2. Does PHP, while parsing such code, if condition 1 is met, anyway parses code from condition 2 (without passing it to browser because condition 1 is met)?
Upper questions are related to bandwidth, page size output and server execution dilema we have here. Thanks to any suggestions.