Home>Article>Backend Development> How to write php entry file

How to write php entry file

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼 Original
2019-09-29 09:30:54 4160browse

How to write php entry file

First, let’s understand the running process of the framework:

Entry file-> Define constants-> Introduce function library-> Automatically load classes-> Start Framework-> Route Analysis-> Loading Controller-> Return Result

How to write php entry file

##Related recommendations: "

php Getting Started Tutorial"

Entry file index.php:


      

Public function function.php in the framework core directory:

'.print_r($var,true).'
'; } }

Framework core file imooc.php:


      

Run the project, After accessing the entry file index.php, the browser outputs: ok as expected.

The above is the detailed content of How to write php entry file. 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
Previous article:Can one person do php? Next article:Can one person do php?