1. Configure PHP
If you want to run PHP files under Dos, you must add the PHP installation directory to the environment variables. The steps are as follows:
My Computer-Properties-advanced-environment variables-system variables,
First, see if the variable path exists, if it does not exist, you can click on the "new" one; if it exists and already has the value, select Path, click "Edit", the PHP installation path inside your computer appended to the existing path value, note: use English (semicolon) ";" Apart
Complete the above operation, you can run PHP files in DOS, directly in the DOS type: PHP xx.php can!
2. Configure MySQL
Add the MySQL Bin directory to the environment variable Path.
For example: MySQL installation path is: E:\MySQL, then in path should be added:; E:\MySQL\bin
Restart DOS after completion, type the command: "mysql-u user name-p password Database" to enter the MySQL management interface
For example: Mysql-uroot-proot (user name after-U does not have a space)
How to run PHP and MySQL commands under Dos