Results 1 to 11 of 11
Nov 8, 2012, 15:55 #1
- Join Date
- Jul 2002
- Along the Wasatch Fault line.
- 0 Post(s)
- 0 Thread(s)
White space at top of page source when using ob_start()
I've stepped into this project, and I've been asked to solve a sticky issue, and I feel like I'm chasing a ghost. Hopefully some of you will have seen this before and can give me some direction.
When looking at the source, I see the following:
<blank line> <blank line> <blank line> <!-- --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
ob_start(); // Start the Output buffer
include $DIR['templates'].'/'.$template; // include and process the file
$html = ob_get_clean(); // get the contents of the output buffer
When $html is printed/echoed the code is simply,
The reason I'm focused on those lines is because it appears that it's messing with the headers and IE9 is freaking out.
I'm really at a loss and could use some help.