The php message board code has been written, how to run the code?
莺
2018-12-18 15:48:09
0
9
1642

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.

莺

reply all (6)
藏色散人

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 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?
    author 2018-12-18 17:21:10
  • reply 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);
    从入门到删库跑路 author 2019-01-08 11:30:59
藏色散人

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 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.
    author 2018-12-18 16:47:21
藏色散人

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

  • reply Installed is the php toolbox. This is what PHP Chinese website has always recommended.
    author 2018-12-18 16:38:11
莺

Waiting online, it’s quite urgent.

    莺

    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?

      莺

      Is there a master?

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!