In the Windows environment, the configuration can allow the command line (CMD) to support PHP syntax compilation, or even java/c, the default command line does not support PHP syntax, will be reported as " This command is not internal command " prompt, it should be how to configure, in fact, the truth is very simple.
Whether it is Java or PHP, the original is to let the system know your compilation file installation path, the following is the basic steps:
1, first find their own PHP installation file path, such as " F:\wamp\bin\php\php5.3.10 ";
2. Configure Environment variables:
2.1, desktop" computer " Right-click = " Property =" Advanced system settings (You can also open Control Panel = " system Small icon = " advanced system settings );
2.2, click the advanced system settings will appear a System Properties panel, click the environment variable button in the panel to see if the adminstrator user variable bar has PATH variable (the default is only TEMP and TMP), If you do not click new , some words click edit ;
2.3.New:Variable nameFill (path), the value of the variable is filled with the PHP path (; F : \wamp\bin\php\php5.3.10 ), variable values can be multiple, in English ";" Interval, which must be preceded by a ";" number.
& nbsp; < Span style= "padding:0px; margin:0px; Color:rgb (151,72,6) "> edit : Add PHP path after existing variable value ( ; f :\WAMP\BIN\PHP\PHP5.3.10&NBSP;
3, so the environment is configured successfully! Test it:
in enter cmd Enter the command line, enter PHP-V&NBSP; test, do not prompt is not internal command for success!
Whether it is Java, C or PHP, the idea of the language is all figured out, its configuration is also a reason to add the relevant installation file path in the environment variables (such as Java needs to write the JDK installation path to path, you can compile Java at the command line)!
How to make the command line support PHP syntax compilation