Ok, so my PHP is, to say the least, horrible. I inherited an application and am having to fix errors in it from someone that wrote it over 7 years ago. When I run the page
See here. global is a modifier which means the variable comes from the global scope. It should just be
global
ob_start(); $siteRoot = '/httpdocs/'; $reportRoot = '/reports/';
and in functions which use them (but you don't have any in this page)
function f() { global $siteRoot, $reportRoot; ... }