Home >Backend Development >PHP Tutorial >Test Nginx's parsing function for PHP

Test Nginx's parsing function for PHP

WBOY
WBOYOriginal
2016-07-30 13:29:511240browse

Test Nginx’s parsing function for PHP

Create a phpinfo.php file in the /usr/local/nginx/html directory with the following content:

  1. php
  2. phpinfo();
  3. ?> 

Then access it through the browserhttp://local/index .html, by default "Welcome to Nginx!" will be displayed in the browser to indicate that Nginx is running normally.

Then visit http://localhost/phpinfo.php in the browser. If PHP can be parsed normally, PHP installation configuration and function list statistics will appear.

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the testing of Nginx's parsing function for PHP, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

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