× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

PHP only files should not end with a closing ?> tag

Sep 11, 2014
<p>If you are working with a file that contains ONLY php, there is no need to end the file with a closing ?&gt; tag. It can actually cause problems if there are blank lines that trail after the closing tag. For example if you try to redirect it will fail because content was already sent to the browser.</p>
comments powered by Disqus