-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,813
  • 4
  • 42
  • 58

2 Answers2

4

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

short_open_tag = on
FredericK
  • 1,612
  • 1
  • 18
  • 26
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
  • 13
  • 23