Forum Moderators: coopster

Message Too Old, No Replies

php include and large amount of whitespace

php include and large amount of whitespace..

         

natural number

5:03 am on Oct 24, 2006 (gmt 0)

10+ Year Member



In .php file I have something like:
<?php include("include.php");?>

When I view that page in Internet Explorer and FireFox, in the source code, I get a huge line of whitespace where my includes are. The whitespace is like 11 lines. My fear is that after this whitespace explosion, bots stop reading... because they think nothing else is around. Are my fears justified?

jatar_k

7:06 am on Oct 24, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



no, you don't need to be worried at all.

I actually haven't seen that with includes in php, well unless the script is generating a ton of newlines for no reason. I have seen similar problems with SSI and coldfusion long ago though even that has been long enough that I can't remember the exact cause.