D
D
Dmitry Krichilsky2016-01-27 18:31:35
PHP
Dmitry Krichilsky, 2016-01-27 18:31:35

Why in PHPstorm generated index.php is not a php file?

Hello.
Please tell me why the created index.php in PHPstorm is not a php file and therefore all the code in it is not valid?
Just started learning this IDE.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Krichilsky, 2016-02-18
@Asdimchik

It is not clear why, but in the PHPStorm settings, the index.php file is recognized as a text file and the corresponding markup is included.
In order to change this, go to Preferences-->File Types--> in the Recognized File Types block, select the Text type, then delete index.php from Registered Patterns

N
newobj, 2016-01-27
@newobj

tags written?
<?php

I
index0h, 2016-01-28
@index0h

I hope this is not written in Cyrillic "r"?)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question