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

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]


Удаленная работа для программистов  •  Как заработать на 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

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