PHP without "?>" At the end

Frequently Asked Questions entry

Question PHP without "?>" At the end
Answer

PHP files must end with "?>" But none here does

PHPThis is a common misunderstanding. It is actually the documented PHP best practice (as described in the PHP manual) to leave off "?>" from the end of PHP files. Some text editors (especially online ones) insert white-space at the end of files, and if that happens after "?>" then it can cause operational problems relating to HTTP headers and cookies.
1 guest and 0 members have just viewed this.
Control functions:

Contract Quick reply