|
Posted by Tim Van Wassenhove on 10/14/87 11:44
On 2006-04-07, Andre Frashek <andre.frashek@stud-mail.uni-wuerzburg.de> wrote:
> The Numerator wrote:
>> Thanks, I hope it helps... I thought that "<? /* code */?>" was the
>> same as "<?php /* code */ ?>". What's the difference?
>>
>
> You can see the difference in your php-configuration file. There´s a
> option called "short_open_tag =". If it´s set to On, then you can use
> "<? /* code */?>". This is the setting which most webhosters (the one´s
> I know) use. But the DEFAULT setting for this option is "Off". Then your
> php code won´t be executed if you use anything else than "<?php /* code
> */ ?>.
>
> So you should always use the long form to get the code portable.
The most annoying about short_open_tag = on is that you have to perform
workaround to get a simple line as: <?xml version="1.0" encoding="UTF-8"?>
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
Navigation:
[Reply to this message]
|