Home  >  Q&A  >  body text

The php message board code has been written, how to run the code?


How to run a PHP project? There are multiple PHP pages in it. Do I need to download tools such as zend studio? Or can I just use the PHP toolbox directly?

I am new to PHP. I have learned PHP from scratch and followed the tutorials to write the code. I just want to know how to run the code after writing it (face covering)

Looking for entry. Take your first step with PHP.

莺2155 days ago1697

reply all(9)I'll reply

  • 藏色散人

    藏色散人2018-12-18 17:01:47

    Open the website directory in the PHP toolbox and create a new folder to store your PHP files. Create a local site domain name, then resolve this domain name to your newly created project directory, then open the host file and replace localhost with your domain name. After restarting, you can access this domain name on the browser and run your code...

    reply
    0
  • 莺

    Thanks! I just tried it and it can run a single page, but how can I run multiple associated PHP files together? How to connect to the database?

    · 2018-12-18 17:21:10
    从入门到删库跑路

    The associated php is executed through link jump, or include and require are loaded in, and the database is connected like this $con = new mysqli($servername, $username, $password, $dbname);

    从入门到删库跑路 · 2019-01-08 11:30:59
  • 藏色散人

    藏色散人2018-12-18 16:43:33

    There is an online editor under the tool column in the PHP toolbox. You can write your PHP code directly in it and run it.

    reply
    0
  • 莺

    Well, I know that online editor, but I have 6 PHP files. How can I run them at the same time? It has been written and stored in the www directory, and you still need to connect to the database.

    · 2018-12-18 16:47:21
  • 藏色散人

    藏色散人2018-12-18 16:37:17

    Has the PHP environment been installed? You can use phpstorm to open and run the test

    reply
    0
  • 莺

    Installed is the php toolbox. This is what PHP Chinese website has always recommended.

    · 2018-12-18 16:38:11
  • 莺

    2018-12-18 15:50:16

    Waiting online, it’s quite urgent.

    reply
    0
  • 莺

    2018-12-18 15:49:40

    After reading so many learning routes and tutorials, I feel that it is useless... The key is to write it down and not know how to debug it. How can I do it?

    reply
    0
  • 莺

    2018-12-18 15:48:41

    Is there a master?

    reply
    0
  • Cancelreply