-1

Possible Duplicate:
How to enable PHP short tags?

Don't know how to search this question in internet:)

<?php
echo 'Hello world';
?>

works, but

<?
echo 'Hello world';
?>

doesn't.

Probably I need to change something in httpd.conf, but can't find what.

Community
  • 1
  • 1
Narek
  • 3,703
  • 3
  • 39
  • 56

2 Answers2

4

In your php.ini file, put this property to on :

short_open_tag = on
FredericK
  • 1,588
  • 1
  • 17
  • 24
0

This is because short tags are disabled.

To enable them, enable the setting short_open_tag in php.ini

open php.ini search for short_open_tag and remove ; from front

Ravi
  • 2,078
  • 12
  • 23