Afficher un message
Vieux 16/02/2008, 13h29   #2
Iván Sánchez Ortega
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: <? tag not reconised, <?php works ok

JoeB wrote:

> Since the ISP changed somthing, the opening php tag no longer works.
>
> <? echo("joe"); ?>
>
> fails, where as this code:
>
> <?php echo("joe"); ?>
>
> works as expected.
>
> Is there a setting in the phpinfo where i can see if this is disabled?
> PHPinfo reports version 4.4.7.


Yes, it's called "short_tags" and is disabled by default.

Having it enabled may cause some problems when using "<?xml" at the start of
your XHTML documents.

> This is the 1st time ive seen this error, and its a masive headache as
> the web design co (the old company) wrote the entire site (1000's of
> pages) using <? instead of <?php


Well, then just write a script to do the dirty work for you.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
  Réponse avec citation
 
Page generated in 0,05628 seconds with 9 queries