I have a few questions about the include function in php. Im trying to design a site template for my site, but i keep running into a few errors. the main problem is that I am trying to put and if statement to see if the user is logged-in so I dont have to put it at the top of every page. Is it possible to begin an if statement without ending it inside an included file and have it ended in another included file after the info on the main page, and if not, are there any other ways to do this?