Knowledge of PHP before use

Source: Internet
Author: User
Tags php and mysql php website

PHP Introduction

    • PHP What is it?
    1. PHP (full name: Php:hypertext preprocessor, or "PHP: hypertext Preprocessor ") is a common open source scripting language .
    2. The PHP script executes on the server .
    3. PHP is free to download and use.

    • PHP What is a file?
    1. PHP files can contain text, HTML, JavaScript code, and PHP code
    2. PHP code executes on the server and results are returned to the browser in plain HTML
    3. The default file name extension for PHP files is ". php"

    • PHP What can I do?
    1. PHP can generate dynamic page content
    2. PHP can create, open, read, write, and close files on the server
    3. PHP can collect form data
    4. PHP can send and receive cookies
    5. PHP can add, delete, and modify data in your database
    6. PHP can restrict users from accessing some pages on your site
    7. PHP can encrypt data

With PHP, you are no longer limited to outputting HTML. You can export images, PDF files, or even Flash movies. You can also export arbitrary text, such as XHTML and XML.

    • Why use PHP ?
    1. PHP can be run on different platforms (Windows, Linux, Unix, Mac OS X, etc.)
    2. PHP is compatible with almost all servers currently in use (Apache, IIS, etc.)
    3. PHP provides a wide range of database support
    4. PHP is free and can be downloaded from the official PHP resources: www.php.net
    5. PHP is easy to learn and runs efficiently on the server side

PHP installation

    • What do you need to do?

To get started with PHP, you can:

    1. Find a Web host that supports PHP and MySQL
    2. Install the WEB server on your own PC, then install PHP and MySQL
    • using PHP support the Web Host

If your server supports PHP, then you don't need to do anything.

Whenever you create a. php file in your web directory, the server will parse the files for you automatically.

You do not need to compile any software, or install additional tools.

Because PHP is free, most WEB hosts provide support for PHP.

    • on your own PC build PHP on-Machine

However, if your server does not support PHP, you must:

    1. Installing the WEB server
    2. Install PHP
    3. Install the database, such as MySQL

The official PHP website (php.net) has PHP installation instructions: http://php.net/manual/en/install.php

    • PHP Server Components

For beginners, it is recommended to use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the time spent by developers in the tedious configuration environment process.

    • Wampserver

The Window system can use wampserver,:http://www.wampserver.com/, support 32-bit and 64-bit systems, and select versions according to its own system.

Wampserver installation is simple, you just have to click "Next" to complete the installation.

    • Xampp

The XAMPP supports MAC OS and Window systems: https://www.apachefriends.org/zh_cn/.

IDE (Integrated development environment, integrated development environment)

    • Eclipse for PHP (free)

Eclipse is an open-source, Java-based, extensible development platform (if the JDK is not installed, you need to download the JDK installation first). For its part, it is just a framework and a set of services for building a development environment through plug-in components. Fortunately, Eclipse comes with a standard set of plugins, including Java development tools (Java Development kit,jdk).

Supports Windows, Linux, and Mac OS platforms.

Eclipse for PHP official: HTTP://WWW.ECLIPSE.ORG/DOWNLOADS/PACKAGES/ECLIPSE-PHP-DEVELOPERS/HELIOSR

    • Phpstorm (charges apply)

Phpstorm is a lightweight and convenient PHP IDE designed to provide user efficiency, a deep understanding of the user's coding, smart code completion, quick navigation, and instant error checking.

The Phpstorm is ideal for PHP developers and front-end engineers. Available in: Smart html/css/javascript/php editing, code quality analysis, version control integration (SVN, GIT), debugging and testing.

Supports Windows, Linux, and Mac OS platforms.

Phpstorm official: http://www.jetbrains.com/phpstorm/download/

Knowledge of PHP before use

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.