0

On ours servers are some old scripts which still uses <? instead of <?php and when I download it to my machine at localhost it's not being interpreted, instead it just echoes the code.

Can someone give me a link to a tutorial or tell me how to achive this?

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103

4 Answers4

4

You need to enable the Short tags in your php.ini file like

short_open_tag = On

And restart your apache server.Considering that you have PHP Version >= 4.0.1.

GautamD31
  • 28,552
  • 10
  • 64
  • 85
1

Set

short_open_tag=On

in php.ini

And restart then your Apache server. The scripts should work then.

Ramon J. A. Smit
  • 331
  • 3
  • 15
0

set in php.ini and restart server.

short_open_tag=On
Praveen D
  • 2,337
  • 2
  • 31
  • 43
  • Your answer would be more useful if you edit it to explain what it does an why it answers the question. – Blackwood Aug 27 '15 at 00:42
0

Set

short_open_tag=On
in php.ini

And restart your Apache server.