Re: Is echo tag reasonably portable?
| From: | Jochem Maas | Date: | Tue, 15 Nov 2005 16:03:56 +0000 |
| Subject: | Re: Is echo tag reasonably portable? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225824@lists.php.net to get a copy of this message | ||
Robin Vickery wrote:
On 11/15/05, Roman Ivanov <gamblergluck@yahoo.com> wrote:they are correct - but I have never used a server that didn't allow short tags in practice. personally I say screw portability for the sake of readability/maintainability, besides short_open_tag is: PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf so you can always have you app init script (or tempalte class or whatever) set the setting how you want it. as always it up to you (Roman).Can '<?=' be used for templates, or is it "a bad thing"?The manual's reasonably explicit on the subject: "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."
-robin