Today i saw a new problem in my computer that if i start any script with <? and ?> tag then the script doesn't show any result in browser but if i put <?php and ?> then it shows in my browser output. Another thing that the first thing works in any computer of my friends. How it possible? I've the latest configuration in my computer.
Check the PHP configuration. Shorttags are not activated by default. Simply edit your php.ini file and set the value of short_open_tag to 1
please note; that short tags are not to GOOD way to code your scripts, most hosters doesn't support <? and ?> tags Keep that in mind!
In my local pc server doesn't support like this kind of <? and ?> tags. Few days later i recognize it,that here is something wrong. Finally i got it.
if you're on winwdows, you have to tell us which name has your webserver. If you're on Linux, so it's in /etc/php5
the file you're looking for is php.ini The line you need to edit is 'short_opentag=On' or 'Off' On a linux box you can find the file using 'locate php.ini' - on windows do a search Hope this helps Brett