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

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

NanoDano
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>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus