Home >Backend Development >PHP Tutorial >phpstorm can test PHP locally without installing apache, phpstormapache_PHP tutorial

phpstorm can test PHP locally without installing apache, phpstormapache_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-12 08:56:28797browse

phpstorm can test PHP locally without installing apache. phpstormapache

Recently I started a PHP project. I searched a lot and found that phpstorm is very small and easy to use. I recommend it by the way. The idea of ​​developing Android is very good. These two IDEs are both owned by the same company.
This article was originally created by Zdexe Software (zdexe.com), please retain the copyright for reprinting
I just started using it and found that phpstorm can test the program without configuring and installing the development environment like VS (because it was developed on my computer There are too many things. If you install one less server program, you will lose one less.)
Okay, no nonsense, let’s teach you how to do it (I only thought of posting tutorials after doing this and found it useful, so there are no links. Please refer to related resources. Everyone uses Baidu, and many of the methods are researched by themselves and are not available online):
The first step is to download the PHP program from the official website of PHP, and then unzip it;
The second step is (if you do not test MYSQL this step You can omit) Go to the official website of MYSQL to download the free version of MYSQL and install it on your computer. Generally, you only need to install the server. The client can download navicat;
The third step is very important. You don’t need to install it until you configure it. APACHE and the like directly test PHP. Click File->Settings->PHP, find Interpreter in the right window, then click the directory button and navigate to the directory where the PHP program was decompressed (if an error is prompted here or PHP cannot be recognized) version, re-download the PHP program, which is divided into 32-bit and 64-bit, try both), OK,,, OK, return to the code editing interface, click the browser icon in the upper right corner to directly The browser sees the code execution results.
Isn’t it very simple, indeed, but the important thing is still behind. If you encounter a problem such as a function that cannot be found, just follow the steps below. I will take the one that supports MYSQL as an example.
If you encounter a prompt that mysql_connect() is not supported, don’t follow the prompts to search online. If you can’t find it, this is a problem with phpstorm. .
Solution process:
1. Go to the PHP program directory and copy php.ini-development or put it in the original directory, then rename it to php.ini and find ";extension=php_mysql.dll" , remove the ";" in front of it and save it;
2. Go back to PHPSTORM and click File->Settings->PHP. Find Interpreter in the right window, click the refresh button on the right, and you will find an error message. My prompt cannot find c:phpphp_mysql.dll, okay, click this location to copy extphp_mysql.dll under the php program to c:phpphp_mysql.dll;
3. Finally, return to PHPSTORM and click File->Settings ->PHP, find Interpreter in the right window, click the refresh button on the right, is it OK again? Don't worry, open the task manager (alt ctrl del), end php-cgi.exe, okay, refresh you code page, and that’s it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1112815.htmlTechArticlephpstorm can test PHP locally without installing apache. phpstormapache I recently started a PHP project and searched a lot and found phpstorm This is very small and easy to use. By the way, I recommend ID...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn