On Sun, Feb 3, 2013 at 10:17 AM, Павел Иванов <[email protected]>wrote:

> Hello,
>
> I have a problem with my webpage when I upgrade PHP from 4.1 version up to
> 5.4
>
> Before my scripts always have startet with:
>
> <?
> >
> // some code here...
> > // a lot of code
> > ?>
> >
>
> But after I upgrade it, this scripts doesn't work only just because it
> starts with "<?", if i change to "<?php" everything works fine,  maybe we
> know any documentation about this "change", and maybe possible ways to turn
> on "<?"
>
> Thanks for support!
>
>
> ---
> Pavel Ivanov
> [email protected]
>


The webmaster list is for discussing maintaining the php.net website. This
is not a PHP support list. Please try php-general for general PHP
discussion/support. You may also find www.php.net/support.php to be helpful
in the future.

Your issue has to do with the fact that using "<?" (short_open_tag style)
is configurable in PHP. See
http://www.php.net/manual/en/ini.core.php#ini.short-open-tag to read more
about this directive. You must set it to on in your php.ini to use those
tags as an alternative of the <?php open tags. They are normally turned off
by default and as such make your code configuration dependent. I would
advice leaving them off and writing all your code using the stand php open
tags instead.

In any case please direct further questions/discussion to the php-general
list from now on about PHP help/support or other general PHP code
discussions. You can also see the other mailing lists available for other
topics and make sure you read the rules before post.
http://www.php.net/mailing-lists.php

Thanks,
Sherif

Reply via email to