Shortly after posting, I started thinking about just storing all of the output in one variable in hotlist.php instead of using echo statements to output it, which is what I think I'm going to do.
Quick example, hello.php
<?php
$message = "Hello, World!";
?>
Then the html page would be: index.php
<?php
include "hello.php";
?>
<html>
<body>
<?php echo $message;?>
</body>
</html>
I thought there would be some way to use a php page with echo statements to do the same thing.
Let's say I have this different hello.php
<?php
echo "Hello, world!";
?>
I want to be able to display the output of hello.php on another php page (one that has html on it) index.php:
<html>
<body>
//call hello.php to output here
</body>
</html>
Anyway, I know a way that I can do this now so its really not an important problem anymore, but I'm still curious if there is a way to do this.
(edit)Actually, it would be a lot easier for me if it was possible to do this by just calling hotlist.php. That way I can put this on any page with just a simple line, instead of having to add an include statement and having to rearrange my code so that I have an id in the right place each time.