You are here: Re: Why ini_set( "short_open_tag", 1 ) didn't work? « PHP Programming Language « IT news, forums, messages
Re: Why ini_set( "short_open_tag", 1 ) didn't work?

Posted by Erwin Moller on 11/23/06 10:58

howa wrote:

> ini_set( "short_open_tag", 1 );
>
> phpinfo();
>
> still showing 'off'

Hi,

ini_set() doesn't change the settings in php.ini.
It just (tries) to overwrite some value in php.ini for the duration of the
script that contains that ini_set().

And that is good. If everybody (on a shared hosting environment) could
change the real php.ini (by using ini_set), development would become very
troublesome because php.ini changes a lot. :-)

Regards,
Erwin Moller

PS: Overwriting short_open_tags is not very usefull, since this setting
should be known by PHP before parsing the php-file.
It is better to ALWAYS use <?php instead of relying on short open tags.

 

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

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