Nov 13, 2010 10:29 pm
Johannes BauerHello 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?
Kind regards,
Johannes
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht ?ffentlich!Kosmologen: Die Geheim-Vorhersage.
- Karl Kaos ?ber R?diger Thomas in dsa <hidbv3$om2$1@speranza.aioe.org>
Nov 13, 2010 10:58 pm
Gregor KoflerAm 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?
>
> 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
Nov 14, 2010 1:11 am
Denis McMahonOn 13/11/10 22:29, Johannes Bauer wrote:
> 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?
>
> 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?
It wouldn't be something as simple as:
<?php echo $ARRAY_NAME["key"]; ?>
would it?
Rgds
Denis McMahon
Nov 14, 2010 4:03 am
MagnoOn 11/13/2010 07:29 PM, Johannes Bauer wrote:
> 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?
>
> Kind regards,
> Johannes
>
>
> 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?
>
> Kind regards,
> Johannes
>
I think I heard (or read) they are deprecated, perhaps. Or I think that
not recommended.
...I guess.
Previous Thread: Store backslash in mysql database
Next Thread: Website url as input how to create and save image on server in php?
Related Forum Topics
- Setting local variable also sets SESSION variable with same name
- Assigning a php variable to a jquery variable?
- Sql query not working
- Defines not working
- ODBC not working with PHP under Eclipse
- Session stopped working?
- Code Stops Working
- More with imagettfbbox(); absolute url not working?
- Session Not Working In Folders?
- Simple Html Php Form not working