Home > Article > Backend Development > 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 'hello world';
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!