Get the App
SLTechnology News&Howtos  ›  Development  › 

How does PHP match the environment and debug code

Shulou Source: shulou.com Published: 2022-06-03 04:04:13 09月16日 Update

This article mainly introduces the PHP how to match the environment and debugging code, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Lesson one: collocation of php environment and code debugging

1. The advantages and background of Php

PHP is one of the tools that allows you to generate dynamic web pages. PHP stands for: hypertext preprocessor (PHP:HypertextPreprocessor). PHP is completely free and free.

Official website: free download of http://www.php.net

2. The collocation of PHP environment

LAMP or WAMP

3. Write and debug simple PHP code

Syntax that can be used

... .

Annotation style

/ * multi-line comments in C ~ # style * /

/ / C style single-line comments

# Unix style single-line comments

4. How to deal with simple PHP errors

1. Opening the php.inidisplay_errors= on shows the wrong location

two。 Used to use echo or print to print errors

3. Learn to use comments to mask symbols for debugging

4. Know how to read the wrong message.

Thank you for reading this article carefully. I hope the article "how to match the PHP with the environment and debug the code" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Comments code environment articles errors style freedom no representatives values advantages location information interests dynamics at the same time completely free tools more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information Microsoft Apple OPPO Reno