php doesn't work "Hello world" on a local server.



  • введите сюда описание изображения

    There's no php cricket in the html file. And so the php works if the expansion is .php



  • php default in html does not fulfil how to build http://phpclub.ru/talk/threads/%D1%80%D0%B0%D0%B7%D1%80%D0%B5%D1%88%D0%B8%D1%82%D1%8C-%D0%B2%D1%8B%D0%BF%D0%BE%D0%BB%D0%BD%D0%B5%D0%BD%D0%B8%D1%8F-php-%D0%B4%D0%BB%D1%8F-%D1%84%D0%B0%D0%B9%D0%BB%D0%BE%D0%B2-%D1%81-%D0%B4%D1%80%D1%83%D0%B3%D0%B8%D0%BC%D0%B8-%D1%80%D0%B0%D1%81%D1%88%D0%B8%D1%80%D0%B5%D0%BD%D0%B8%D1%8F%D0%BC%D0%B8.17063/

    We need to add to the file. .htaccess or in the scapula configuration

    # Разрешаем исполнять php в .htm и .html файлах
    AddType application/x-httpd-php .htm .html
    

    The php will then be performed in html files, resulting in a loss of productivity, as all HTML files will be processed as PHP code. So, php code put in .php chablons.

    And tag. html In the last line of your code, you'll change the cover.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2