You are here: Re: Problem with PHP Page « PHP Programming Language « IT news, forums, messages
Re: Problem with PHP Page

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация