I have "script_a.php" which generates XML output, and "script_b.php" which uses SimpleXML to display the data nicely to the user.
Script B:
$xml = simplexml_load_file("script_a.php");
This line doesn't work because it is literally trying to convert the PHP script into a SimpleXML object!
How can I tell PHP to execute Script B, BEFORE it converts it into XML?