Jump to content

Using <? instead of <?php


Recommended Posts

The best fix for this is to edit your files to use the <?php form. PHP.net has the following recommendation -
[quote]; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.[/quote]
Short open tags, like register_globals, was one of the lazy-way/short-cuts that caused more problems then it was worth.

If you still want or need to do this, either do what rolf suggested in the php.ini file or you can also do this with the following line in a .htaccess file -
[code]php_value short_open_tag on[/code]
Link to comment
https://forums.phpfreaks.com/topic/32436-using/#findComment-151451
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.