PHP (Server Scripting) - from W3Schools

PHP (Server Scripting) - from W3Schools

转载请标明出处:  本文来自 CSDN 博客。x

PHP Tutorial

<!--[if !supportLists]-->1.      <!--[endif]-->PHP Basic

<!--[if !supportLists]-->2.      <!--[endif]-->PHP Advanced

<!--[if !supportLists]-->3.      <!--[endif]-->PHP Database

<!--[if !supportLists]-->4.      <!--[endif]-->PHP XML

<!--[if !supportLists]-->5.      <!--[endif]-->PHP AJA X

<!--[if !supportLists]-->6.      <!--[endif]-->PHP Reference

 

PHP is a power server-sid script languag for creat dynam and interact websites. PHP is perfectli suit for Web develop and can be embed directli into the HTML code. The PHP syntax is veri similar to Perl and C. PHP is often us togeth with Apach web server on variou oper systems.

http://www.w3schools.com/php/default.asp

 

PHP Basic. 2

Introduct to PHP. 2

What You Should Alreadi Know?. 3

PHP Installation. 3

PHP Syntax. 3

PHP Variabl 3

PHP String. 4

PHP Operat 4

PHP If...Else Statement 4

PHP Switch Statement 4

PHP Arrai 4

PHP Looping. 4

PHP Function 5

PHP Form and User Input 5

PHP $_GET. 5

PHP $_POST. 5

The $_REQUEST Variable. 5

PHP Advanced. 6

PHP Date 6

PHP Include File. 6

PHP File Handling. 6

PHP File Upload. 7

PHP Cooki 7

PHP Session 8

PHP Send E-mail 8

PHP Error Handl PHP 错误及异常处置机制 ) 8

PHP Filter 8

PHP Database. 9

PHP MySQL Introduction. 9

PHP MySQL Connect to a Database. 9

PHP MySQL Insert Into. 9

PHP MySQL Select 9

PHP MySQL Update. 9

PHP MySQL Delet From.. 10

PHP Databas ODBC. 10

PHP XML. 10

PHP XML Expat Parser 10

PHP XML DOM.. 10

PHP SimpleXML. 10

PHP and AJA X.. 11

A JA X Introduction. 11

PHP and AJA X.. 11

A JA X XMLHttpRequest 11

PHP and AJA X Suggest 11

PHP and AJA X XML File Example. 11

PHP and AJA X MySQL Databas Example. 11

PHP and AJA X responseXML Example. 12

PHP and AJA X Live Search. 12

PHP and AJA X RSS Reader 12

PHP and AJA X Poll 12

PHP Refer 12

 

PHP Basic

 

Introduct to PHP

http://www.w3schools.com/php/php_intro.asp

HTML tag and scripts. Script in a PHP file ar execut on the server. A PHP file mai contain text.

What You Should Alreadi Know?

    *  HTML / XHTML

* Some script knowledge

What is PHP?

PHP stand for PHP: Hypertext Preprocessor

A pach + PHP + MySQL

 

PHP Installat

http://www.w3schools.com/php/php_install.asp

MySQL,instal PHP. or Apach Server.

参考资料:

 

PHP Syntax

http://www.w3schools.com/php/php_syntax.asp

which is plain HTML. Thi is becaus the script ar execut on the server befor the result is sent back to the browserYou will onli see the output from the PHP file..

Bas PHP Syntax

PHP script block alwai start with <?php and end with ?>

output text with PHP: echo and print

Com in PHP

// to make a single-lin comment

/* and */ to make a larg comment block

 

PHP Variables

http://www.w3schools.com/php/php_variables.asp

such as numbers,Variabl ar us for store values. string or function results, so that thei can be us mani time in a script.

Vari in PHP

like text strings,Variabl ar us for store a values. number or arrays. All variabl in PHP start with a $ sign symbol.

PHP is a Loos Type Language

 

PHP String

http://www.w3schools.com/php/php_string.asp

A string variabl is us to store and manipul a piec of text.

The Concaten Operat .   is us to put two string valu together.

Th strlen function is us to find the length of a string.

The strpo function is us to search for a string or charact within a string.

 

PHP Operators

http://www.w3schools.com/php/php_operators.asp

 

PHP If...Else Statements

http://www.w3schools.com/php/php_if_else.asp

 

PHP Switch Statement

http://www.w3schools.com/php/php_switch.asp

 

PHP Arrays

http://www.w3schools.com/php/php_arrays.asp

A n arrai can store on or more valu in a singl variabl name.

3 differ kind of arrays:

    * Numer arrai - An arrai with a numer ID key

    * Associ arrai - An arrai where each ID kei is associ with a value

* Multidimension arrai - An arrai contain on or more arrays

 

PHP Loop

http://www.w3schools.com/php/php_looping.asp

    * while - loop through a block of code if and as long as a specifi condit is true

and then repeat the loop as long as a special condit is tru    * do...whil - loop through a block of code once.e

    * for - loop through a block of code a specifi number of times

* foreach - loop through a block of code for each element in an array

 

PHP Functions

http://www.w3schools.com/php/php_functions.asp

The real power of PHP come from it functions.

In PHP - there ar more than 700 built-in function available.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值