2. Getting started with PHP

Source: Internet
Author: User
Tags getting started with php
2. Getting started with PHP 2. Getting started with PHP

The PHP site's online tutorials are already great. There are links to other tutorials. This part of this article will familiarize you with PHP. I can't do anything without omission. my goal is to allow you to quickly start your PHP programming.

2.1 Prerequisites

First, you must have a working web server that supports PHP. I suppose the extension of all php files on your server is. php3.

2.2 install PHP

Generate a file named test. php3 with the following content:

Open the file in your browser. Look at this page and you will know the options for installing and using PHP.

2.3 Syntax

As mentioned above, you can mix your PHP code and HTML code. Therefore, you must have a way to distinguish the two. The following are several methods you can use. You can choose one of the most appropriate methods and stick to it like this!

Separating from HTML

You can use the following methods:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.