Re: <? tag not reconised, <?php works ok
On 16 Feb, 12:29, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> 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_breakf...@hotmail.com
> Jabber:ivansanc...@jabber.org ; ivansanc...@kdetalk.net
Ive managed to find and replace most of them, the only ones i cannot
find is the ones where there is a new line directly after the tag:
<?
code...
Can someone come up with a way of finding these? Im using textpad,
and it supports regex find expressions.
Thanks for all the ..
Jeo
|