FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Variable expansion <?=$foo?> not working anymore
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Variable expansion <?=$foo?> not working anymore [message #170655 is a reply to message #170654] Sat, 13 November 2010 22:58 Go to previous messageGo to previous message
Gregor Kofler is currently offline  Gregor Kofler
Messages: 69
Registered: September 2010
Karma:
Member
Am 2010-11-13 23:29, Johannes Bauer meinte:
> Hello group,
>
> I use variable expansion like
>
> <?=$HTTP_POST_VARS["foo"]?>
>
> in some of my scripts. After updating to 5.3.3 (and possibly some
> php.ini configuration updates), this expansion stopped working (it is
> just put in literally into the document).
>
> Since I do not know what that type of expansion is called and searches
> for "php <?=$" were not really successful, I'd like to know: Is this
> deprecated? If not, how do I reenable it?

The setting short_open_tag is disabled [1].
Either enable it in your php.ini or - much better - switch to proper
notation (in your case replace the <?= ... ?> with <?php echo ... ?>).

Gregor


[1]
http://php.net/manual/en/ini.core.php

--
http://vxjs.gregorkofler.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: where else can this list be found?
Next Topic: newbie question: Is config.php necessary?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 21:43:42 GMT 2024

Total time taken to generate the page: 0.05587 seconds