Posted by Juliette on 03/30/06 08:06
Chuck Anderson wrote:
> My remote hosting service just upgraded to Php 5. I believe that this
> is the cause of one minor error that I have encountered. This line:
> <?= // isset($_SESSION['some_var'])?'Disable':'Enable' ?>
>
> now produces the following error:
> Parse error: parse error, unexpected ';' in
> /home/abasama/public_html/demo_enable.php on line 114
>
> [I know it's ugly, but I commented out that line in case I want to reuse
> it in the future.]
>
> I've also tried changing it to
> <?php echo // isset($_SESSION['abas_demo'])?'Disable':'Enable' ?>
> and I get the same error.
>
> I don't really care whether I can leave that line as it is or not, but
> it got me to wondering what other things might now be broken.
>
> Is there a summary of any sort that would help me know what I should be
> looking for as far as broken functionality after upgrading to Php5?
>
Have you tried:
<?php //echo isset($_SESSION['abas_demo'])?'Disable':'Enable'; ?>
Correct code should help ;-)
Considering the 'what's changed' listing: have a look here:
http://www.php.net/manual/en/migration5.php
Navigation:
[Reply to this message]
|