Most of the time when creating email template in PHP , we may need to separate some files and include these .
But including these files with shorthand cause some display problem .
Well, short tags are used for simple variable output and not a piece of HTML .
So we have to use like below .
<?php include('includes/header.php'); ?>
Short tags were, for a time, the standard in the PHP world; however, they do have the major drawback of conflicting with XML headers and, therefore, have somewhat fallen by the wayside .
In our experience most servers do have short tags enabled.
is far more convenient than typing
From PHP 5.4.0 the short_open_tag mandate does exclude the short echo tag = $example;?>! This is essential as the utilization of all other short echos is viewed as vain. In any case the utilization of the short echo tag is supported starting now and into the foreseeable future. It provides for a smoother and tidier code-base – esp. in view documents. So for PHP >= 5.4.0 = ?> can be utilized without setting short_open_tag. Kindly don’t utilize the other short tag in your code .