Phpstorm can test PHP locally without Apache installation

Source: Internet
Author: User
Tags mysql free

Recently got a PHP project, found a lot of discovery Phpstorm this is very small and very useful, and by the way the idea of developing Android is very good, these 2 Ides are a company.
This article by the smart Move software (zdexe.com) original, reproduced please retain the copyright
In the beginning, I found that phpstorm can test the program just as it does without installing the development environment, (because I have too many things to develop on my computer, one less to install a server program)
Okay, no nonsense, the following teaches you how to do it (because it is very useful to finish these to think of the hair tutorial, so there is no link, the related resources please their own Baidu, many methods are their own research on the internet does not):

The first step, first to PHP's official website to download the PHP program, and then unzip it well;

The second step, (if you do not test MySQL This step can be slightly) to the official MySQL website download mysql free version, installed on the computer, generally only install the server on the line, the client can download a navicat;

The third step, this step is very key configuration can not install Apache such as direct Test PHP, point file->settings->php, the right window to find interpreter, and then click the Directory button, Locate the PHP program to unzip the directory (here if the error or do not recognize the PHP version, to download the PHP program, he divided into 32-bit and 64-bit 2 kinds, both try), OK,,, OK, go back to the code editing interface, Click on the browser icon in the upper right corner to see the code execution results directly in the browser.

is not very simple,, indeed, but the important thing is still in the back,, if the encounter can not find the function and so on, as follows, I take the support of MySQL for example,

If you encounter mysql_connect () does not support the hint, do not follow the prompts to search online, you do not find, this is the phpstorm problem.

Solution process:
1, to the PHP program directory to copy php.ini-development, or put in the original directory, and then renamed to PHP.ini, find "; Extension=php_mysql.dll", Put the front ";" went to the preservation;

2, back to Phpstorm Point file->settings->php, the right window to find interpreter, point to the right of the refresh button, you will find him out of the wrong hint, my tips can not find C:\php\php_mysql.dll, OK, Press this location to copy the Ext\php_mysql.dll below the PHP program to C:\php\php_mysql.dll;

3, finally, back to Phpstorm Point file->settings->php, the right window to find interpreter, point to the right of the refresh button, is it OK, don't worry, open Task Manager (Alt+ctrl+del), The end of the Php-cgi.exe, OK, go to refresh your code page,, so you can.

Phpstorm can test PHP locally without Apache installation

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.