The PHP HandbookThe PHP Handbook Conclusion 2 Preface The PHP Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get you up to speed quickly with PHP. This Twitter @flaviocopes. Enjoy! 3 The PHP Handbook 1. Preface 2. Introduction to PHP 3. Which kind of language is PHP? 4. Setting up PHP 5. Your first PHP program 6. PHP language basics 6.1. Variables break and continue 12. Functions 13. Looping arrays with map/filter/reduce 14. Object oriented PHP 14.1. Classes and objects 14.2. Properties 14.3. Methods 14.4. Constructor 14.5. Inheritance0 码力 | 97 页 | 8.78 MB | 1 年前3
Guzzle PHP 6.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 ii Guzzle, Release Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. • allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops. • Middleware system allows you to augment and compose 1 User Guide 1.1 Overview 1.1.1 Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent0 码力 | 50 页 | 237.04 KB | 11 月前3
Guzzle PHP 5.3 Documentation. . . . . 54 2 HTTP Components 57 3 Service Description Commands 59 i ii Guzzle Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. • integrate with any method you choose for sending HTTP requests over the wire (e.g., cURL, sockets, PHP’s stream wrapper, non-blocking event loops like React, etc.). • Guzzle makes it so that you no longer 1 User guide 1.1 Overview 1.1.1 Requirements 1. PHP 5.4.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent0 码力 | 63 页 | 275.75 KB | 11 月前3
Guzzle PHP 7.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 ii Guzzle, Release Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. • allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops. • Middleware system allows you to augment and compose 1 User Guide 1.1 Overview 1.1.1 Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent0 码力 | 50 页 | 235.39 KB | 11 月前3
性感的PHP - 现代化高性能的PHP开发���PHP ——�������PHP�� ������� ����� ���� • ���� • PSR�� • ������� • Trait • Composer���� • ����� • PHP 7�� • Laravel���� ���PHP���� PHP HTTP �� HTML/CSS ����� ��� ���� ���� curl ���� php namespace App\Http\Controllers; use App\Models\Destination; use App\Models\Travel; use GrahamCampbell\Markdown\Facades\Markdown; use Illuminate\Support\Facades\Cache; ����� PHP 5.3.0 0 ������������������ ��� PHP ����������������������� ���������� PHP ����������� PHP �� ���������������������������� ������������ ���� ��������������������� class Zend_Cloud_DocumentService_Adapte0 码力 | 38 页 | 3.56 MB | 1 年前3
01 Web 开发与PHP 杨亮 《PHP语⾔程序设计》Web 开发与PHP 杨亮 为什么要从事Web开发 • 互联⺴⽹网是发展最好的⾏行业 • 会有成千上万⼈人使⽤用你的产品 • 相对容易找到⼯工作 • 赚钱最多的⼯工作之⼀一 • 可以解决⾃自⼰己的实际问题 • 可以告诉家⼈人我在做什么 • 。。。。 Web产品流程 ⽤用户 PM UE RD FE QA OP PM: Project & Marketing (IIS) 后端脚本 (PHP) (JSP) (ASP) 数据库 (MySQL) (Oracle) (Access) HTTP 请求 对应⽂文件 获取数据 返回数据 返回⻚页⾯面 返回⻚页⾯面 请求⻚页⾯面 服务器端 客户端 html css javascript html css javascript Web开发⼈人员需要关注 后端脚本 (PHP) (JSP) (ASP) cnbeta.com/articles/182533.htm 什么是 PHP Personal Home Page 脚本语⾔言:编写+运⾏行 很像C语⾔言,但是简单很多 满屏都是$$$$$$$$$ 开源软件 跨平台 将程序嵌⼊入到HTML中执⾏行 弱语法:没有指针,不约束变量类型,⼤大量内置函数 为什么要学PHP • ⼤大家都在⽤用 • 社会需求旺盛 • 可以深⼊入可以浅出0 码力 | 18 页 | 5.96 MB | 1 年前3
06 PHP基本语法 — 条件、循环、函数 杨亮 《PHP语⾔程序设计》PHP基本语法 —条件、循环、函数 杨亮 程序的基本结构 输⼊入 输出 程序 运算(+ - x / & | ! …) 逻辑(条件、循环、递归) 辅助(变量、数组、函数) ⼩小测验 ⽤用你熟悉的程序找出 1~1000中的所有质数 我们直接看代码好了 1 php 2 if( $totalqty == 0 ) 3 echo 'You did not order anything align="center">Distance 6Cost 7 8 php 9 $distance = 50; 10 while ($distance <= 250) { 11 echo "12 " 增强程序的⼀一致性 PHP中的代码重⽤用 • 将其他⽂文件中的html或者php代码引⼊入到本⽂文件 • require()与include(); • require_once()与include_once(); • 可以引⼊入其他的函数库,或者代码⽚片段 1 php 2 //reusable.php 3 echo 'Here is a very simple PHP statement 0 码力 | 25 页 | 1.30 MB | 1 年前3
Guzzle PHP v5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 ii Guzzle, Release Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. • allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops. • Middleware system allows you to augment and compose CHAPTER 1 User Guide Overview Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent0 码力 | 49 页 | 231.08 KB | 11 月前3
07 PHP的输⼊、表单与⽂件上传 杨亮 《PHP语⾔程序设计》PHP的输⼊入、表单 与⽂文件上传 杨亮 Web基本流程 PC Mobile 服务器 (Apache) (IIS) 后端脚本 (PHP) (JSP) (ASP) 数据库 (MySQL) (Oracle) (Access) HTTP 请求 对应⽂文件 获取数据 返回数据 返回⻚页⾯面 返回⻚页⾯面 请求⻚页⾯面 服务器端 客户端 html css javascript javascript html css javascript PHP基本⾓角⾊色 后端脚本 (PHP) (JSP) (ASP) 数据库 (MySQL) (Oracle) (Access) html css javascript 前端⼯工程师 后端⼯工程师 接受请求 获取数据 处理数据 拼接⻚页⾯面 组织数据 PC Mobile ⻚页⾯面内容 ⻚页⾯面外观 ⻚页⾯面⾏行为 course 2014 2015 101.htm 102.htm 101.htm 102.htm 103.htm 2015年算法分析与设计 2015年Linux系统与应⽤用 2015年PHP语⾔言程序设计 2014年算法分析与设计 2014年Linux系统与应⽤用 / / / / / / / / 添加⼀一⻔门课程需要做的⼯工作: Ctrl-C +Ctrl-V 当0 码力 | 12 页 | 1.12 MB | 1 年前3
05 PHP基本语法 - 变量、数组、字符串 杨亮 《PHP语⾔程序设计》PHP个��� —����来���� �� Web个��� PC Mobile ��� �Apache� (IIS) ���� �PHP� �JSP� �ASP� ��� �MySQL� �Oracle� �Access� HTTP �� ���� ���不 ���不 ���� ���� ���� ���看 ��看 html css javascript javascript html css javascript PHP个��� ���� �PHP� �JSP� �ASP� ��� �MySQL� �Oracle� �Access� html css javascript �看��� �看��� ���� ���不 ���不 得��� 来能�不 PC Mobile ���� ���� ���� html CSS JavaScript JavaScript ���不 ���PHP�� 得��� 1 2 3 4 php 5 echo "This is my first PHP code :)
"; 6 ?> 7 8 1 2 3 4This
0 码力 | 25 页 | 587.00 KB | 1 年前3共 881 条- 1
- 2
- 3
- 4
- 5
- 6
- 89













