tags:

views:

57

answers:

3

in my local hosting the script doesn't work, if i wrote <? instead of <?php.

what i must change in php.ini to correct it?

Thanks

+3  A: 

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

short_open_tag

Is the property you seek.

bisko
@Bisko Thanks man;) it can be `On` or `Off` ?
Syom
Sure, It must be ON to allow <?. Just keep in mind it's for php < 5.3.0 as specified in the documentation.
bisko
ie. it doesn't work in versions >= 5.3.0 ???
Syom
No it doesn't work for version >= 5.3.0.
Richard Knop
+1  A: 

It is:

short_open_tag

Make sure to read:

Sarfraz
A: 

It's already been said how to do it, but I'm just saying that it might not be such a great idea. Almost anyone you ask will tell you not to use short tags. Unless you have a specific reason to use short tags, you should just type <?php. It's only 3 more characters.

qmega