-
<? vs <?php
Hey,
Not looked at PHP for a while but picked up an oldish site and installed on a development server. The code is written using <? php code here ?> and the php install on the box is not parsing this, it seems to require <?php ?> is this an ini setting?
Pino
-
Re: <? vs <?php
Yes, short_open_tag I think.
-
Re: <? vs <?php
Yes. some ISPs will set the short_open_tag to false to enforce the declaration of the server side script language in use. Personally I do it anyways so that anyone comming along after me will know that it is php and no asp (I've seen this confusion before... you'd think that the ; on the end of each line would havbe given a clue). But, yes it can be found in your php.ini file (requires server restart after changing).
-tg