Re: <? vs <?PHP
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: <? vs <?PHP

From: Scott <nospam@webscott.com>
Date: Mon Apr 17 2006 - 03:07:43 CEST

On Mon, 2006-04-17 at 00:13 +0100, Paul Lautman wrote:
> I often see the former starting delimiter rather than the latter. Is there
> some rule about where the former can be used?
>
>

There is a setting in your php.ini file called short_open_tags. If it
is enabled, you can use <? instead of <?php. However, because xml also
uses the short tag <?, and for compatibility with different servers, it
is generally recommended that you use the longer <?php tag.

http://www.php.net/manual/en/ini.core.php#ini.short-open-tag

Scott
Received on Mon May 1 02:57:32 2006