Синтаксис <?=$res?>
3 отговора
0 прегледа
Синтаксис <?=$res?>
Защо на някои съсрвъри не се интерпретира това вграждане в HTML
kod:
<?=$res?> а на много места си работи. Предполагам че е настройка на апачето и ли на пхп. Използвал съм го стотици пъти и не ми се пренаписва
със <?php print $res; ?> което работи.
kod:
<?=$res?> а на много места си работи. Предполагам че е настройка на апачето и ли на пхп. Използвал съм го стотици пъти и не ми се пренаписва
със <?php print $res; ?> което работи.
Re: Синтаксис <?=$res?>
... виж какво казва php.ini по този въпрос :
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On