Home  >  Q&A  >  body text

The php file opening is the code. I want to open the web page

Create a new php in phpstorm. Open it with a browser to display the web page;

Create a new php with text. Then open it with a browser and it will be the code.

phpstudy doesn’t matter either. Some people say that it is necessary Open it in the environment. Don't know how to do it?

Could you please give me an answer? Mengxin is very grateful (⊙o⊙)…

仰望空调的兔子仰望空调的兔子1863 days ago2766

reply all(5)I'll reply

  • 王林

    王林2019-08-20 17:07:29

    It is not possible to right-click and open it with a browser like an HTML file. You need to enter localhost/xxx.php or localhost/folder/xxx.php

    in the browser address bar.

    reply
    0
  • sweet  me

    sweet me2019-08-16 15:40:10

    The code file to be typed should be placed in the root directory, and then opened on the local server in the browser: localhost+file name

    reply
    0
  • 仰望空调的兔子

    Yeah, okay, thank you, boss

    仰望空调的兔子 · 2019-08-16 15:49:38
  • 啦啦啦啦~

    啦啦啦啦~2019-08-16 15:08:34

    You can install a phpstady

    reply
    0
  • 仰望空调的兔子

    phpsady? Are you sure it's not phpstudy...I installed it. However, type the code in txt, change the suffix to php, open the browser, and the code will be displayed.

    仰望空调的兔子 · 2019-08-16 15:17:37
  • Cancelreply