Configuring Sublime and Phpdesigner in the WAMP environment

Source: Internet
Author: User
Tags sublime directory sublime text

After installing the Wamp test http://localhost/or http://127.0.0.1 can go into the Wamp tool home, you can say Wamp has been properly installed, into the Phpdesigner, In the Tools tool-preferences configuration found debugger localhost, choose to Wamp folder under the WWW, so that the code can be written on localhost on the run.

(following to Uncle arrogant history)

1. Open Sublime Text

————————————————————— ———————————————————————

2. Click: Tools-build system-new Build System, in the open page, enter the following code

{

"cmd": ["d:\\wamp\\php\\php.exe", "$file"], 
" File_regex": "php$", 
" selector": "Source.php " 

}

Note: The red font is the path of your php.exe , the format is filled in correctly.

————————————————————————————————————————————

3. in order to facilitate memory, under your sublime directory \data\packages, create a folder named "PHP".

And put the above code in the PHP folder, named "Php.sublime-build" (also easy to remember)

————————————————————————————————————————————

4. Enter the code in your Sublim text and press CTRL +b to compile


It is not possible to open a PHP file directly with a browser after compiling it under local http://localhost/untitled-1.php, because that php file is equivalent to a text document and is not compiled by the PHP interpretation in local wamp to generate a "readable" Html.

Configuring Sublime and Phpdesigner in Wamp environments

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.