Home  >  Article  >  Backend Development  >  How to check if PhP is loaded successfully

How to check if PhP is loaded successfully

藏色散人
藏色散人Original
2019-10-19 17:26:592404browse

How to check if PhP is loaded successfully

How to check whether PhP is loaded successfully?

First write a .php file;

Then put it in the installed htdocs directory or www directory,

Then you can write a paragraph or Write phpinfo();

<?php
echo &#39;hello world&#39;;

Open the web page and enter the localhost access file name. If there is information output, it means that the PHP configuration is successful.

Introduction to PHP:

PHP is the "hypertext preprocessor" and is a general open source scripting language. PHP is a scripting language executed on the server side. It is similar to C language and is a commonly used website programming language. PHP's unique syntax mixes C, Java, Perl, and PHP's own syntax. It is conducive to learning and widely used. It is mainly suitable for the field of web development.

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to check if PhP is loaded successfully. For more information, please follow other related articles on the PHP Chinese website!

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