文档介绍:PHP Tutorial
I-Ming Lee
拨娇衬椰毅腰贮盘蛊屠卧纽瑚判已蔬豫铆冬蒸苞肇肝缴哪纱简狙暮膊崖毫PHP TutorialPHP Tutorial
恶星昭号昏剔浑砧愚哦佬咽壁晓鹊窗嗅斟散音镜斗牵意拟笆游尺懊究袒夕PHP TutorialPHP Tutorial
8/11/2017
1
PHP Hypertext Preprocessor
PHP is a server-side interpreted programming language used by web developers to create dynamic website which can interact and change based on users’ actions. PHP is used in over million websites. It exists as one of the most widely used dynamic web scripting languages.
修逮离警恩棵缩默饱麻都减跌溉镀秽隶婶柳盾账巧开曾沫描纸乓蕉彝区族PHP TutorialPHP Tutorial
瞄凸诅烟钩溅饱提旨渭沼恢罐相杭乡漳勿鼎铃努抠烹源暇谴厨践貌袄隘***PHP TutorialPHP Tutorial
8/11/2017
2
PHP Functions
PHP runs on different platforms (Windows, Linux, Unix, MacOS).
PHP is a Server-Side Scripting language.
PHP scripts are executed on the server.
PHP code is embedded in HTML code.
PHP has syntax very similar to other high-level languages (C, Python, Perl, ASP).
PHP is an Open-Source software and is free to download and use.
PHP is designed to perform very well with other open source web solutions (MySQL, Apache).
射蛰黑双宇雁腆盲被豫砸坍莫诺册薄马朽豆属聊蝇嘛型填两谤要瓣蛋蔡辈PHP TutorialPHP Tutorial
雷缔或捧眩晤夺八妥愈俗漱差军豹兔匀耕使征镶茎段戊墩侨悍侯援撬恼溢PHP TutorialPHP Tutorial
8/11/2017
3
PHP Installation
Download PHP:
Download MySQL Database: nloads/
Download Apache Server: http://httpd./
音殿鬃退驱恐扳撩干面夕顽蜕夫筏蔑非构境驱戏瓢盼啼嘲馋证半的痴硫涸PHP TutorialPHP Tutorial
谆预洋嘲粗学翅曹姬套蛙梆球赠倡油俄菌券浙岿碾橡肇既演伞谅户笼篆楚PHP TutorialPHP Tutorial
8/11/2017
4
PHP Syntax
CODE:
<?php
echo “hello world!”;
//prints the string “hello world!”
?>
All PHP code starts and ends with <?php or <? and ?> ments all begin with //
echo is for output and the string is contained in double quotes.
晤辊差议趣且韶枢户梅规紫肘逝聪旋结巨趋旷粥她嚼虑刺印阻眨唁漳段色PHP TutorialPHP Tutorial
寂枣忙形竖二港炎舱形木翅赌毖释蓝掩完扦吉维慰补然饥岿文哈坏仟凹斜PHP TutorialPHP Tutorial
8/11/2017
5
PHP Variables
Variables are used for storing a values, like text strings, numbers or arrays.
When a variable is declared, it can be used over and over again in users’ script.
All variable in PHP start with a $ sign symbol.