开发者

Use PHP alternate syntax with WAMP

Is it possible to use PHP alternate syntax (as descr开发者_Python百科ibed in the CodeIgniter user guide), on WAMP?


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.


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


CI has an option in application/config.php to dynamically re-write

not sure what kind of performance impact this causes but i certainly use i

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜