ob_start()
session_start()
"Top of the page" means before any output. "Bottom of the page" means after all output.