Hi all, sorry to be asking about Include() again, but I looked through the archives and couldn't find the answer that I was looking for 🙂
I've got a main file (index.php) that includes what you could call 'content' files. Each content file starts off with assigning a load of values to different variables. Later on it has some HTML that I'd like to output into the main file.
What I'd like to be able to to is include the content file at the top of index.php, and only include as far as all the variable assignments. Further down index.php I'd like to include the rest of the file (the bit with all the HTML in).
If I include("contentfile"), return from it, and include("contentfile") again, will it resume at the point from whence it returned? I've tried it out but in one situation it worked as I expected, and in another it didn't, which got me rather confused!
Thanks in advance guys an' gals,
Deej.