How to get the command line to support PHP syntax compilation

Source: Internet
Author: User
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)!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.