Home  >  Article  >  Backend Development  >  How to run php on mac

How to run php on mac

王林
王林Original
2019-10-21 15:21:246039browse

How to run php on mac

1. Place the written PHP file in your customized Apache root directory (the folder in Figure 8)

How to run php on mac

2. Then enter in the browser:

localhost

How to run php on mac

3. Add /filename.php (the PHP you need to run) after localhost in the browser URL bar File name)

How to run php on mac

The running results are as follows:

How to run php on mac

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to run php on mac. 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