Re: What's the difference between <? ?> and <?php ?> ???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There's a setting in php.ini that dictates whether you can use <? ?> or if 
you have to use <?php ?>

It's called "short_open_tag"  ( 
http://us.php.net/manual/en/ini.core.php#ini.short-open-tag )

It's usually a good idea to use <?php ?> to maintain portability.  If what 
you write gets moved to a system that has short_open_tag turned off (like 
your current system it seems) your code won't break.

-TG

----- Original Message -----
From: "Abhishek Dutta" <abhisek.dutt@xxxxxxxxx>
To: php-windows@xxxxxxxxxxxxx
Date: Sun, 30 Sep 2007 12:43:46 +0530
Subject:  What's the difference between <? ?> and <?php ?> ???

> 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
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux