Introduction to PHP for Dynamic Web pages: What is PHP?

Source: Internet
Author: User
Tags ini mysql php introduction mysql database
First, PHP introduction

PHP, like ASP, is the scripting language that runs on the server side. It is very different from asp:

php

asp

unix, Linux, win98/nt, etc. win98 PWS, NTW Peer Web Server, NTS IIS

language style

C language Basic language
cost issue

free use, and publish the source code ">

...

> I think, better than ASP

Second, the installation of PHP

Unzip the downloaded file into a directory (such as: C:\PHP3), then copy the Php3.ini-dist file to your window directory (for example: C:\Windows) and rename the file to Php3.ini. OK, first here, let's skip to the next section to install Apache.

 Third, make PHP support MySQL

It's like a downward line in the Php3.ini file.

; Windows Extensions
; Extension=php3_mysql.dll

All you have to do is remove the Extension=php3_mysql.dll ";" and make PHP support the MySQL database.

Four, PHP editing format

1.<? ... ...   ? >

2.<?php ...? >

3.<script language=php>

... ...

</script>

4.<% ...%>

But if you're going to do it like you do in 4, like an ASP tag, you have to be in the Php3.ini file to

Asp_tags = Off

To

Asp_tags = On



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.