Home  >  Article  >  Backend Development  >  Simply record PHP’s superglobal variable $_SERVER

Simply record PHP’s superglobal variable $_SERVER

angryTom
angryTomforward
2019-10-14 17:57:302398browse

Generally speaking, when building a website, a single entrance (mostly from index.php) will be used. In my opinion, the benefits of a single entrance include the following two points:

1. Subsequent programs can be processed uniformly. For example, if you want to use a third-party class library during development, you only need to introduce it in the entry file, and other programs will be able to reference it.

2. Paths can be processed uniformly. Because they all start from index.php, the imported file only needs to be relative to the path of index.php.

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

The above is the detailed content of Simply record PHP’s superglobal variable $_SERVER. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.whmblog.cn. If there is any infringement, please contact admin@php.cn delete