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

From: Date: Sun, 30 Sep 2007 17:14:37 +0000
Subject: Re: What's the difference between <? ?> and <?php ?> ???
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-28510@lists.php.net to get a copy of this message
grep, replace all <?[^p] with <?php wow, that was hard... Abhishek Dutta wrote:
thanks for the quick reply. I agree it is good to follow the rules (i mean standard ;) ), But the thing is if I use some script written by someone else, i have to rely on his/her choice. Thanks On 9/30/07, TG <tg-php@gryffyndevelopment.com> wrote:
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@gmail.com> To: php-windows@lists.php.net Date: Sun, 30 Sep 2007 12:43:46 +0530 Subject: [PHP-WIN] 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


« previous php.windows (#28510) next »