windsor
(Davidfaith101)
1
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!
Van_Damm
(Van Damm)
2
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:
ochgar
(Ochgar)
3
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
samdark
(Alexander Makarov)
4
That’s very unusual. What do you have in server/PHP logs?