Apply Sublime to develop PHP extensions

Source: Internet
Author: User
Use Sublime to develop PHP extensions I. use command line to compile VS projects without using VS for PHP extension development. This can be used with any development tool you like. Use VS_ROOT \ Common7 \ IDE \ devenv.exe to compile and use devenv /?, Output help to view PHP extensions developed using Sublime
1. use command line to compile VS projects without using VS to develop PHP extensions. This can be used with any development tool you like. Use VS_ROOT \ Common7 \ IDE \ devenv.exe for compilation
You can use devenv /?, View output help
@ VS_ROOT: VS Installation Path
2. create build. bat in the extension directory, and enter devenv EXTENSION_NAME.sln/build version name @ EXTENSION_NAME: the main file @ version name of the VS project, such as DEBUG, Release_TS, or release_ets.
3. create a Sublime Build System)
Input :{
"Cmd": ["build. bat"],
"Working_dir": "$ {file_path }",
"Encoding": "gb2312"
}
Then, save the build system name as PhpExtension-Mysql.sublime-build
4. create the PHP Extension folder as the Sublime Project 1. select the PHP extension path.
For example: E: \ php-sdk \ php54dev \ vc9 \ x86 \ php-5.4.5 \ ext \ my_mysql now you can see the PHP extension project on the left.
Now it is very easy to compile the extension: ctrl + B.



5. AutoCompelete, which helps prompt the PHP kernel to install the alternative_autocompletion plug-in by using the API. now you can develop the extension you want.

1 floor h2681957904 yesterday
Great. thank you for sharing.

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.