views:

46

answers:

3

Is it possible to use PHP alternate syntax (as described in the CodeIgniter user guide), on WAMP?

+1  A: 

yes it is, i don't believe alternate syntax is environment dependent as it's a part of the language. This is not the same as PHP shorttags, the two are independent of each other.

http://php.net/manual/en/control-structures.alternative-syntax.php

jordanstephens
Does it have to be enables in some way? I am using the most recent WAMP build (WampServer 2.0i).
lemiant
I haven't been able to find anything in the documentation that suggests that this feature needs to be enabled, or even *can be* enabled/disabled. I don't have wamp handy so I can't test, but I'm sure I've used it on wamp before without problems. have you tested it?
jordanstephens
+1  A: 

This should be entirely PHP controlled, not by WAMPServer or the environment in which you are running.

You need to find your php.ini file and set short_open_tag = 1, although this should already be set.

I know some installs of PHP can put php.ini in random places. To find out the file location, simply call phpinfo(); in any php file. Relatively near the top, you should find the location of the loaded php.ini file.

I hope this can be of help to you.

George
A: 
Ross