In the end of the a html page generated with php you sometimes get a '<' char. A friend of mine have previously asked about it and got the answer that there was something wrong in the html code, and most times the '<' char will disapear if you fix this. But not always. I have found a way to fix this by ending all php code with:
exit(' ');
If you pass anyting else to exit() e.g.
exit('hello');
exit will output 'helloh' where the last char (in this instent 'h') is the same as the first char in the string you pass to exit()... (So exit(' ') acctually sends ' ' to the browser)
What am I passing to exit()? why is it returned in the browser? if this wrong? could I case some error by doing this? Does anyone have any other theory or facts about the '<' char in the end of a php generated html page? Does anyone have any more information about this?
Andreas Bernhardsen
Graficonn