PHPCLI configuration problems in Windows

Source: Internet
Author: User
The manual page shows how to run PHP In WindowsCommandLine like a common command line program: the command line method of PHP in Microsoft Windows. The operation described above can indeed remove the. php suffix to run the file,...

The manual page shows how to run PHP In Windows Command Line like a common Command Line program: the Command Line method of PHP in Microsoft Windows.

The operations described above can be removed..phpThe suffix is used to run the file, but it is strange that it cannot be associatedphp.exeAnd opened it with the Default Editor (I have set SublimeText association before )..phpFile ). However, if I right-click to set the default programphp.exeYou cannot obtain the parameters set in the command line program.

The following is my current registry information:

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.php]@="phpfile""Content Type"="application/php"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile]@="PHP Script"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\Shell]@="Open"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\Shell\Open]@="&Open"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\Shell\Open\Command]@="\"E:\\Dropbox\\upupw\\php5\\php.exe\" -f \"%1\" -- %~2"

Reply content:

The manual page shows how to run PHP In Windows Command Line like a common Command Line program: the Command Line method of PHP in Microsoft Windows.

The operations described above can be removed..phpThe suffix is used to run the file, but it is strange that it cannot be associatedphp.exeAnd opened it with the Default Editor (I have set SublimeText association before )..phpFile ). However, if I right-click to set the default programphp.exeYou cannot obtain the parameters set in the command line program.

The following is my current registry information:

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.php]@="phpfile""Content Type"="application/php"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile]@="PHP Script"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\Shell]@="Open"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\Shell\Open]@="&Open"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\Shell\Open\Command]@="\"E:\\Dropbox\\upupw\\php5\\php.exe\" -f \"%1\" -- %~2"

You need a suitable tool.

We recommend that you use FileTypesMan to check the file association with the php extension. In particular, you must right-click open.Open (& O)Is the behavior correct.

In the worst case, you can also completely delete all associations with the php extension, restore the php file to an unknown file type, and repeat the instructions of the php manual in a clean state.

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.