How to enable the command line to support PHP syntax compilation
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 =" Property = " Advanced system settings (you can also open the Span style= "padding:0px; margin:0px "> 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 namePATH ); variable value fill in the PHP path ( f :\wamp\bin\php\php5.3.10 ), variable value can be multiple, in English "; " Interval, which must be preceded by a
edit : Add PHP path after existing variable value ( f :\wamp\bin\php\php5.3.10
3, so the environment configuration success! Test it:
Enter cmd at the beginning of the input box into the command line, enter the php-v test, 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)!