Link to home
Create AccountLog in
Avatar of mar2195

asked on

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

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

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.
Avatar of maeltar
Flag of United Kingdom of Great Britain and Northern Ireland image

Set :

short_open_tag = On

in your php.ini and it should work
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account