How to build PHP environment and PHP framework?

Updated on technology 2024-04-21
3 answers
  1. Anonymous users2024-02-08

    First of all, you need to go to the official website of phpstudy**The software package of the corresponding system, here the default is the XP system (the same steps for the win7 system), Duan Qi selects the software package (here**is the phpstudylite version, you can also install it according to different system hobbies**favorite software newspaper version).

    After decompression, a prompt will pop up to prevent duplication, select "Yes" here.

    Subsequently, the desktop pops up the control panel of the software running, and you can see that the software has been started, including its startup status.

    Now, you can go to the C: phpstudy directory and see that there is a "www" folder, which is where Hongmin stores PHP** programs, and you can place it directly in its root directory.

    Here, using the program as an example, place the program in the root directory of the www directory.

    The "MySQL Manager" on the control panel is used to manage the MySQL database, click on it, and you can enter the MySQL management page through the browser.

    This is the MySQL admin login page after clicking, here it prompts, its default password is root.

    You can see it after you log in. Including, import, export, delete and other operations. The list on the left is the existing database, in addition to the default system database, there is also a test test database, if you don't like it, you can delete it directly.

    Return to the desktop software running control panel, see the "Other Options Menu" button, which mainly includes the setting of some commonly used parameters, click here to see.

    Click the "Other Options Menu" button, you can see that it includes a lot of settings, such as configuration files, version switching, site domain name management, etc., you can see the detailed tutorial provided by the software for specific settings, and there will be no detailed explanation here.

    On it, the software has been launched, and the program has been placed in the root directory of the www folder. Let's open the browser to see the effect, enter localhost in the browser address bar (if you put the php package a folder in the www directory, the address entered here is localhost a), enter, and see the installation interface that appears, proving that the local php environment has been set up as if it had been built.

  2. Anonymous users2024-02-07

    PHP framework building steps:

    1.Project initialization.

    First of all, we create our project directory in our web directory, and I will name the project hellovod for the time being, so my computer directory is: d:laragonwwwhellovod. Create a file in this directory.

    2.Add an entry file.

    After initialization, let's configure the entry file. Create a public folder in the hellovod directory and create an entry file in the folder.

    3.Add routing features.

    4.Add a controller module.

    In the hellovod app directory, create a controllers folder to store the controller files. Create a controller file under that folder:. Destruction and demolition.

    5.Add a model.

    Of course, the framework has to be able to deal with the database, otherwise there is no soul. Let's build a database called hellovod and create a user table: hw user.

  3. Anonymous users2024-02-06

    PHP integrated development environment, including Zend Studio, Eclipse for PHP, PHPSTORM, etc.

    1、zend studio

    Zend Studio is a PHP integrated development environment (IDE) developed by Zend. In addition to strong PHP development support, HTML, JS, and CSS are also supported, but only debugging support is provided for PHP language.

    2、eclipsephp studio

    EclExPhp is a large PHP project development compiler, developed based on the Eclipse underneath, and integrated with the JDK, eliminating the trouble of installation and configuration, and can be used once installed, without configuration.

    This compiler is a PHP compiler, which assists in the development and debugging of PHP, and integrates functions such as highlighting, function tracing, and real-time error correction. At the same time, it also adds the functions of collaborative development version server: SVN and CVS.

    The embedded browser can be navigated in real-time with a simple debugging style.

    3、phpstorm

    PHPSTORM is a commercial PHP integrated development tool developed by JetBrains to improve user efficiency, deep understanding of user coding, intelligent completion, fast navigation, and instant error checking.

Related questions
12 answers2024-04-21

Variables can be included in double quotes, where $str reads look at the sea"$str";It will recognize that $str is a variable and explain the contents of the variable to get it"look at the sea", and single quotes'$str'It is to output the string $str, depending on the situation. Sometimes you need to make up a SQL statement with some variables, and double quotation marks are useful. >>>More

4 answers2024-04-21

1.Need a field trip to choose the learning style that suits you; >>>More

16 answers2024-04-21

The session is divided into two parts, the session space is stored on the server side, and the ID of the open space is stored in the client's cookie. >>>More

14 answers2024-04-21

This means to judge that the variable $entry is not equal to. And not equally. and the following is dir($dir.$entry) Yes. >>>More

6 answers2024-04-21

There is a lot of search on the Internet about this problem.,Include and include once are not much research.,The difference is that include is whether you have introduced the file before.,It's still introduced.,include once checks whether the file has been introduced before.,If there is, it's no longer introduced.。 >>>More