If you want your file to be interpreted as php then your file must start and end with and ?> and everything outside of that is ignored by the php parser.
php code..//parsed php code..//parsed ?> hellow..//normal test but ignred by php parser
Three types of tag are available in php 1.normal tag() 2.short echo tag() 3.short tag()
short tag are bydefault available but can be disabled by short_open_tag = Off and also disabled bydefault if php will built with --disabe--short--tags()
As short tag can be disabled so only use the normal and short echo tag.
If your file only have php code then do not use closing tag. //php code; //php code; //php code;but if you are embedding php with html then enclose php code with opening and closing tag. <html> <head> head> <body> php //php code; //php code; //php code;?>