Re: removing ?> tag from include files

From: Date: Wed, 10 Dec 2003 16:50:33 +0000
Subject: Re: removing ?> tag from include files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172356@lists.php.net to get a copy of this message
Priit Kaasik wrote:
hi,
    im interested in specific information about removing php end-tags from
include files (which contain php code). it woun't give any warning or error but will remove all annoying spaces and line breaks before you send your own header data... how does include function work in these cases? are there any 'bad effects' involved? or should i use output buffering instead since its a standard solution? -- pk
The short answer is that you can just leave them off and nothing bad will happen. The long answer is that you should include it, as it is good coding practice, but make sure that there is no extra whitespace after it. -- paperCrane <Justin Patrin>

« previous php.general (#172356) next »