C
C
Cat_usual2019-07-30 01:58:53
PHP
Cat_usual, 2019-07-30 01:58:53

How to write html code in php file?

Please tell me, is this normal for PHPStorm?
5d3f797ea8e8d502353925.png
Also, it doesn’t work on Html, I realized that I need to write in PHP, and there is another problem
5d3f79b048129991257674.png
5d3f79df59c6b471414361.png
. Also, it runs HTML code, but PHP doesn’t.
5d3f7a07b3018588989435.png
Please tell me how to make PHP code work, otherwise it doesn’t want to run , more precisely, the Html code in index.php does not want to work, what should I do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2019-07-30
@index0h

no need to write html code in executable php code

R
Rodion Kudryavtsev, 2019-07-30
@rodkud

Select the project start file - either index.html or index.php. Find in the settings where it is set.

E
Egor, 2019-07-31
@trotne

You are running index.php file from phpstorm. It looks like you don't have a local server set up. In index.html file php scripts will not be executed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question