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