M
M
Moolzv Rivers2019-07-09 15:00:58
Sublime Text
Moolzv Rivers, 2019-07-09 15:00:58

PHP not working in Sublime Text 3, what should I do?

Hello! Perhaps I missed something, which may make the question stupid. I trained, wrote a site in Sublime Text 3, got to php, I write: "php" I press tab, and he refuses to do anything at all, ok, I think I'll write it myself, I write: "<?php ?>" and then the next problem is - it refuses to highlight it, it also doesn't work in the browser... What should I do? The code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Добро пожаловать!</title>
  <link rel="stylesheet" href="css/style.css">
</head>
<body>
  <header> 
    <form action="" autocomplete="off">
      Введите пароль: <br> <br>
      <input type="text">
    </form>
  </header>
  <?php 
    echo "Hey!";
  ?>
</body>
</html>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2019-07-09
@ThunderCat

There is a suspicion that

Maybe I missed something
, namely, to install a server that will actually execute the php code, simply by opening the html / php file from the folder with the browser you will not run the script contained in the code.

C
crazyhat, 2019-07-09
@crazyhat

To emphasize: 371880add2.jpg
To work: the file extension must be .php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question