use CGI::SSI_Parser; fssi("./header.html"); or sssi('');