Since my first post, I've continued to play around with a couple of test files that I was using to simulate the problem. they are test.in.php :
PHP Code:
<? $title = "Testing"; ?>
and testing.php
PHP Code:
<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<?php require("test.inc.php"); ?>
<?php print("$title"); ?>
</BODY>
</HTML>
If I use the script as it's shown above, it does what I'd expect it to and prints the word Testing on the page. However if I swap the two lines of PHP code around in the file testing.php to simulate the way they appear on the actual page,
PHP Code:
<?php print("$title"); ?>
<?php require("test.inc.php"); ?>
the script just displays a blank screen. I thought that PHP would just take all of the included/required files then output the overall outcome of the combined variables, etc.
I hope this explains my first post a bit better. I really don't want to have to go back and figure out how to rearrange all the code if I don't have to.
Thanks,
Bookmarks