PHP require/include only works once in script then fails
- by Colin
Hi everybody, this isn't a problem as such but it's bugging me and I would appreciate any help. It might be totally obvious but I can't see it.
$root_path = $_SERVER['DOCUMENT_ROOT']
require($root_path .'template/header.php')
require($root_path .'template/footer.php')
The script will include one or the other but not both. It will run and…