I don’t know why, but on my site php code ends with >
What do you mean?
PHP code usually ends with ?> but on my site it ends with >
Be sure to use
<?php
to open
And
?>
to close
2 Likes
I think that you used a shortened php tag. And everything inside it is commented out.
The server probably does not accept shortened php tags. so like @ckhawand said, use <?php
and ?>
1 Like
My page is the same
everything between
does not work and the browser sees as
<! -? Php
echo ‘date test’
->
Try adding a semicolon( ; ) after ‘test daty’.
You can enable short tags if you need.
1 Like