Re: [PHP] <?=$var?> on OS X



Dotan Cohen wrote:
On 27/11/06, Chris <dmagick@xxxxxxxxx> wrote:
Dotan Cohen wrote:
> On 27/11/06, Brian Dunning <brian@xxxxxxxxxxxxxxxx> wrote:
>> I've got a new OS X box and for some reason <?=$var?> doesn't work
>> like it does on all my other OS X boxes - anyone know a quick reason
>> why not?
>>
>
> Exactly for that reason I don't recommend that you use it. Just use
> <?php print $var; ?> as it's portable and doesn't add that much
> typing- certainly not enough to justify the headache.

Good suggestion but it doesn't help if it's not his software that he
needs to get running ;)

Actually, it does. He can global replace "<?=" with "<?php print" and
be done with it. Then he could let the author of this non-portable
software know that his 'shortcut' makes using the software difficult.

Especially if it's not his own code (ie, code meant to be used by
others) it should not depend upon short tags.

Well he could also change it with a htaccess :P

php_flag short_open_tags on

--
Postgresql & php tutorials
http://www.designmagick.com/
.



Relevant Pages

  • Re: TCO and users/box
    ... I work at a scientific institute; we do scientific computation, ... with number of boxes, but does scale up with number of boxes. ... Resource use is inefficient, given the statistical pattern of usage. ... IMHO this isn't a good reason for one workstation/user unless it can be ...
    (comp.os.linux.hardware)
  • Re: TCO and users/box
    ... We have an aging Sun v1280 server, ... I just checked the server; ... with number of boxes, but does scale up with number of boxes. ... IMHO this isn't a good reason for one workstation/user unless it can be ...
    (comp.os.linux.hardware)
  • Re: Combo Box
    ... make combo boxes that display all 4 types (Reason code, ... Days added on and Points) in combo boxes. ... and points s/b 0. ... "Jeff Boyce" wrote: ...
    (microsoft.public.access.tablesdbdesign)
  • Re: [PHP] on OS X
    ... it does on all my other OS X boxes - anyone know a quick reason why not? ... Postgresql & php tutorials ...
    (php.general)
  • Re: FreeView gone
    ... Most of the old OnDigital boxes will be bricked. ... Could you expand on that remark, ... For some reason, I can get ITV and C4 as a reasonable analogue picture ... and also the Nokia Freeview reception on ...
    (uk.media.tv.misc)