Posted by Andre Frashek on 09/28/53 11:44
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.
Navigation:
[Reply to this message]
|