1. 游客, мы просим Вас ознакомиться с Правилами Форума и Отказом от ответственности!

搜索结果

  1. pilad
  2. pilad
    Если при открытии php скриптов у Вас открывается страничка в виде текста то: 1.Вы забыли установить php - apt-get install php5 2.Или в Вашем скрипте используются короткие тэги <? //Тут код.. ?> Значит при этом функция коротких тэгов отключена в php.ini по пути /etc/php5/apache2 ; This directive determines whether or not PHP will recognize code between ; <? and ?> tags as PHP source which should be processed as such. It's been ; recommended for several years that you not use the short tag "short cut" and ; instead to use the full <?php and ?> tag combination. With the wide spread use ; of XML and use of these tags by other languages, the server can become easily ; confused and end up parsing the wrong code in the wrong context. But because ; this short cut has been a feature for such a long time, it's currently still ; supported for backwards compatibility, but we recommend you don't use them. ; Default Value: On ; Development Value: Off ; Production Value: Off ; http://php.net/short-open-tag short_open_tag = Off Включите : ; This directive determines whether or not PHP will recognize code between ; <? and ?> tags as PHP source which should be processed as such. It's been ; recommended for several years that you not use the short tag "short cut" and ; instead to use the full <?php and ?> tag combination. With the wide spread use ; of XML and use of these tags by other languages, the server can become easily ; confused and end up parsing the wrong code in the wrong context. But because ; this short cut has been a feature for such a long time, it's currently still ; supported for backwards compatibility, but we recommend you don't use them. ; Default Value: On ; Development Value: Off ; Production Value: Off ; http://php.net/short-open-tag short_open_tag = On и перезапустите апач командой: apache2ctl restart Или так: /etc/init.d/apache2 reload 3.Или просто пишем код так: <?php //тут сам код.. ?> P.S. Если используете Убунту , то перед командами пишем : sudo
    作者: pilad, 2014-02-13, 0 个回复, 所属版块: PW Документация
  3. pilad
  4. pilad
  5. pilad
  6. pilad
  7. pilad
  8. pilad
  9. pilad
  10. pilad
  11. pilad
  12. pilad
  13. pilad
  14. pilad
  15. pilad
  16. pilad
  17. pilad
  18. pilad
  19. pilad
  20. pilad