Okay, Im trying to pull a block of code into a php page, the block of code looks like this:
<?
session_start();
if (session_is_registered("valid_user"))
{
?>
its for a secure portion of my website, and I have purposely left the bracket open so users who have logged in will see the webpage that is included in the "if" conditional. I close the bracket at the end of the file.
PHP does not like this, I think the require(); is trying to evaluate the block before it's being put in?
How would I get this block of code into another page using require(), if possible?
Any alternatives to using require()?