syntax error. Why I need remove <?php and ?> tags? on php scripts?
migbara (6)

I'm user since one year ago. My simple php scripts on worked well untill a few weeks ago, but now I found this error:

syntax error, unexpected '<', expecting end of file

My php code is:

<?php echo "Hola"; ?>

I have read here that if I remove the tags it works, but, I think that it's an error because if I remove the tags I lost syntax highlighting, and every this was working with tags before.

Please, could you take a look? I need help with this


You are viewing a single comment. View All
migbara (6)

@Vandesm14 PHP works on if you remove these tags now