site php starting tags?

christ845y

New member
Hello.
I just did a 'manual' installation of php on my winxp. A very weird (maybe)
problem encountered. It doesn't 'recognize' <? ?tags. but it recognizes
<?php ?tags. Clueless. Someone please help me out.
regards
Abhisek
 
It all depends on the version of PHP you are using. Only the most recent onces will recognize <? ... ?>

It is best you use <?php ... ?> at all times, this works with all versions and will ensure portability or your PHP files.
 
You haven't got short tags turned on in your php.ini file.

All versions of PHP have supported both short and full tags, but you can disable short tags in the INI file.

Open up php.ini and set short_open_tag to 1.
 
Back
Top