SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: PHP output

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2006
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP output

    Hello,

    I have been handed legacy code which contains the following:

    <?= $variable ?>

    Now this outputs a string no problem on the old linux server however on a new windows box running PHP 5 this code does not echo the string.

    Instead of replacing lots of code, is there a way I can tell PHP (in the ini?) that this should be echoed?

    Many thanks


    Sinky

  2. #2
    SitePoint Wizard wonshikee's Avatar
    Join Date
    Jan 2007
    Posts
    1,223
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    short_open_tag=On

  3. #3
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,033
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    To clarify that answer, you need to add that to either the .htaccess file of the directory the PHP file is in, or the PHP.ini file for the server.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •