Some configuration and usage experiences of wamp (Windows)
W-windows, speaking of Windows, in fact, we are most familiar with the GUI (graphic user interface) graphical interface There is nothing to say, the basic computer will use the Windows graphical interface, Windows was designed for the masses, but as the most faithful comrade of the computer, we should know more than the simple and easy-to-use graphical interface, but should be CLI command-line mode.
I have to marvel that command line interface (CLI) is really very powerful, whether it is Windows or Linux, many things that are not implemented in the graphical interface, can be easily solved in the command lines mode, which is why I repeatedly respected the command line.
For example, when you want to execute a script, but I do not have Apache server, can not be accessed on the Web page, this time can be easily resolved under the command line, there are two ways,
The first is to move the script you need to run to the directory where your Php.exe is located, and then use the CD command at the command line to go to the directory where the Php.exe is located, directly execute the PHP xxx.php command can be executed directly
The second is the key, Windows has an environment variable, as long as the environment variables are configured, you can not go to the Php.exe directory directly using PHP xxx.php to execute the script, in my opinion, the environment variable is a shortcut to the executable program, As for how to configure the environment variables do not elaborate, in short, it is very simple
When using the command line, it is always unavoidable to use a number of commands, such as you want to connect to the database at the command line, you have to use mysql-hxxx-uxxx-pxxx such commands, if it is more commonly used, every time you want to access to press so many letters, If you do not configure the environment variables, you have to use the CD command to go to the directory where the Mysql.exe, it is the heart tired, this time you need a file called batch processing, first write the command you need to use in the. bat file, and then double-click or directly to execute it.
Batch files are. bat suffix file, can be opened with a text editor, the function is very powerful (in fact, the function of the command line), in fact, a set of commands put together for batch processing, especially convenient to operate
Talk about my path to PHP development---WAMP (Thu)