Forum Moderators: coopster

Message Too Old, No Replies

Include file contains php codes

         

H2O_aa

7:47 pm on Jan 10, 2006 (gmt 0)

10+ Year Member



If I have php codes inside an include file, do those codes get parsed by the php-module first before being included in the parent file? Or does everything in the include file get included in the parent file first, then the php-module parses everything all at once?

jatar_k

8:32 pm on Jan 10, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I believe when an include is encountered the parser goes off to that file, parses everything then returns to the original file and continues parsing after the include.

at least that is how SSI includes work, I assume php does it the same way.