- CouchDB and PHP Web Development Beginner’s Guide
- Tim Juravich
- 230字
- 2021-08-13 18:22:50
Time for action — creating a quick info page
We are going to double-check that Apache can render PHP scripts by quickly creating a phpinfo
page that will display a wide array of data about your configuration.
- Open your text editor.
- Create a new file that contains the following code:
<?php phpinfo(); ?>
- Save the file with the name,
info.php
, and save that file in the following location:/Library/WebServer/Documents/info.php
. - Open your browser.
- Navigate your browser to
http://localhost/info.php
. - Your browser will display the following page:
What just happened?
We used our text editor to create a file called info.php
that contained a special PHP function called phpinfo
. We saved the info.php
file into the folder: /Library/Webserver/Documents
. This folder is the default location (in Mac OS X only) for all of the files that your Apache service will display. When your browser hit the info.php
page, the phpinfo
looked at your PHP installation and returned an HTML file with details about your configuration. You can tell that there is a lot going on here. Feel free to poke around and look at some of the information before we move on.
Fine tuning Apache
We finally have our basic web development environment set up. However there are a few things we'll need to adjust in Apache in order for us to build our application; the first of which is enabling a great built-in module called mod_rewrite
.
- LabVIEW 2018 虛擬儀器程序設計
- PWA入門與實踐
- ASP.NET MVC4框架揭秘
- Java深入解析:透析Java本質的36個話題
- Kotlin Standard Library Cookbook
- QGIS By Example
- 飛槳PaddlePaddle深度學習實戰
- 匯編語言編程基礎:基于LoongArch
- Java Fundamentals
- Visual Basic程序設計習題與上機實踐
- Buildbox 2.x Game Development
- Red Hat Enterprise Linux Troubleshooting Guide
- 計算機應用基礎項目化教程
- 從零開始學Android開發
- Puppet:Mastering Infrastructure Automation