Config PHP in HTTPD to read only "<?" without "php"

Discussion in 'Apache' started by mar2195, Aug 5, 2011.

  1. #1
    Is there a way to configure the PHP section in HTTPD.CONF file to process PHP files with only "<?" ... without the "php" ?

    Meaning... Currently using:<? some stuff; ?>
    - - server is not reading php files

    When I use: <?php some stuff; ?>
    - - server reads php files just fine

    Instead of updating a TON of php files, is there a way to edit the HTTPD file to make the server process the PHP files correctly without the additional "php"?


    FYI: This is on a Windows Server - PHP5.
     
    mar2195, Aug 5, 2011 IP
  2. mar2195

    mar2195 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the php.ini file (NOT the httpd.conf file):

    Set:
    short_open_tag = 1

    INSTRUCTIONS:
    http://www.php.net/manual/en/ini.core.php

     
     
    mar2195, Aug 5, 2011 IP