[SOLVED] Why no PHP closing tag?

Some php files in the framework have no ‘?>’ closing tag but have <?php opening tag.

When is it appropriate or required to add the closing tag?

One of many examples in the blog demo:

../protected/components/TagCloud.php

Kindly explain this convention!

Omitting closing ?> tag in files that contain only PHP code is considered a good practice.

As stated in http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html:

Dear friends.

I have a problem, because all my php files in the framework have no ‘?>’ closing tag. However I can’t see any php page.

I uploaded to server host with this characteristics:

PHP Version 5.2.14

.

.

report_zend_debug On On

safe_mode Off Off

safe_mode_exec_dir no value no value

safe_mode_gid Off Off

.

.

serialize_precision 100 100

short_open_tag Off Off

.

.

.

Adding ?> tag solves the problem, but I have many php pages :(

Any suggestions are welcome

thank u.

Oswaldo

That’s very unusual. What do you have in server/PHP logs?