Page 1 of 1
include issue
Posted: Tue Oct 04, 2011 3:25 pm
by Vegan
I am using an include statement and for some reason when I do that, the engine does a newline before showing the included material.
Seems to be a bizarre problem.
<?php include '/footer.html' ?>
Re: include issue
Posted: Tue Oct 04, 2011 4:15 pm
by social_experiment
Is there a new line inside the included file?
Re: include issue
Posted: Tue Oct 04, 2011 5:43 pm
by Vegan
nope, just HTML5
Re: include issue
Posted: Tue Oct 04, 2011 7:07 pm
by Pazuzu156
I noticed you used:
If you include a / then use ./
Example:
Re: include issue
Posted: Tue Oct 04, 2011 7:31 pm
by egg82
or simply don't use "./" or "/" at all...
Re: include issue
Posted: Fri Oct 07, 2011 2:23 pm
by Vegan
I found that changing the included file fixed the problem
content was on 1 line, changed it to multiline and it worked, go figure