PHP4+MySQL完整自学方案

副标题:无

作   者:赵启志编著

分类号:

ISBN:9787113040260

微信扫一扫,移动浏览光盘

简介

  本书为市面上最新的PHP与MySQL相结合的完整自学教材。内容以Redhat为发展平台,主要针对PHP4与MySQL做介绍。详细讲解了PHP4的相关语法,部分函数还配有特别设计的综合范例,以方便读者学习。MySQL进入3.23版本后,除了结合SleepyCat Software的Berkeley DB,以达成Transaction功能外,更增加了多种Table Types支持,最引人注意的应该非HEAP Tables(也就是存放在存储器内的Table)莫属,当然License的改变也为人津津乐道。本书除了一一介绍上述的特色之外,也将所有相关的Scripts用法整理出来,提供给想进一步掌握MySQL的朋友。为了让读者更快掌握PHP4与MySQL,书中加入了许多应用范例,并附上完整程序代码供初学者参考。         

目录

chapter1 简介 1

1-1  数据库的强大功能 1

您用计算机做什么事 1

数据库能做什么 1

数据库在internet的应用 1

业界应用现况 2

1-2  redhatlinux与apache 2

关于redhatlinux(http://www.redhat.org) 2

世界占有率第一的http sever -apache(http://www.apache.org) 2

1-3  mysql(http://www.mysql.com) 3

mysql概述 3

mysql的特色 3

license goes gpl 3

中文兼容 4

关于transaction 4

网络资源 4

1-4  php(http://www.php.net) 5

简单好用的php 5

php能做什么 5

强大的数据库整合功能 5

.php是免费的 6

php与asp、cgi的比较 6

网络资源 6

chapter2 安装前的准备 9

2-1  硬件需求 9

2-2  linux安装时注意事项 9

partitions 9

adduser 9

packages 9

2-3  其它相关软件 10

sleepycat's berkeley db(bdb) 10

imap-uw 10

chapter3 开始安装mysql、php与apache 13

3-1  取得最新版本 13

3-2  安装mysql 13

mysql版本命名的原则 13

以redhat linux6.x安装 14

3-3  安装mysql遇到的问题 20

3-4  安装php及apache 21

3-5  安装zend optimizer 36

chapter4 进入mysql的世界 39

4-1  设计数据库的概念 39

client-server结构 39

如何决定table结构 40

4-2  激活/停止mysql 40

建立grant tables 40

mysql的数据库目录 40

切换用户执行daemon 41

激活/停止mysql daemon 42

测试mysql 42

遇到问题 43

4-3  权限管理中心─"mysql"数据库 43

如何联机到数据库 43

mysql数据库 44

权限操作模式 47

4-4  设置privileges的方法 50

建议您遵循的原则 50

改变superuser 51

设置root密码 52

使用grant增加新用户 53

直接用insert、update 54

新的权限设置何时生效 54

使用mysplaccess检查权限 55

4-5  access denied存取被拒 56

4-6  增加安全的考虑 57

mysql系统部分 57

mysqld 关于安全的选项 57

chapter5 mysql语法及函数 59

5-1  mysql使用的语法概述 59

strings 59

numbers 60

十六进制 (hexadecimal) 60

自定义变量 60

命名的问题 61

5-2  mysql的table types 62

简介 62

tst与ntst的区别 62

mylsam tables 62

isam tables 63

heap tables 63

bdb or berkeley db tables 64

5-3  mysql的data types 64

numeric types 65

date and time types 66

string types 68

char与varchar 68

选择适当的data type 71

5-4  重要命令说明 71

database相关 71

table相关 72

存取数据 80

显示状态 94

批注 96

5-5  常用函数 96

使用括号() 96

四则运算 96

位运算 97

逻辑运算 97

比较运算 97

字符串比较 100

cast operator 101

流程控制 101

数值函数 103

字符串函数 106

日期时间函数 113

常和group by一起使用的函数 122

5-6  外部命令 124

isamchk 124

myisamchk 126

myisampack 130

mysql 132

mysql.server 135

mysql_install_db 139

mysqlaccess 139

mysqladmin 141

mysqlbug 144

mysqldump 144

mysqlimport 148

mysqlshow 150

pack_isam 151

safe_mysqld 152

5-7  my.cnf 153

chapter6 给apache一双翅膀--使用php 157

6-1  开始之前 157

6-2  基本语法 157

命令分隔(instruction separation) 158

批注(comments) 158

6-3  数据类型 159

integers 159

floating point numbers 159

strings 159

arrays 161

objects 163

type juggling 163

type casting 164

6-4  变量(variables) 165

概述 165

内定变量(predefined variables) 166

变量影响范围(variable scope) 168

以变量命名的变量(variable variables) 170

外来变量(variables from outside php) 170

6-5  常数 173

6-6  expressions 174

6-7  operators 174

数值操作数(arithmetic operators) 174

指定操作数(assignment operators) 174

位操作数(bitwise operators) 175

比较操作数(comparison operators) 175

条件操作数(conditional operator) 175

错误控制操作数(error control operators) 176

执行操作数(execution operators) 176

增减操作数(incrementing/decrementing operators) 176

逻辑操作数 177

优先等级(operator precedence) 177

字符串操作数(string operators) 178

6-8  控制结构(control structures) 178

if 178

else 179

elseif 180

不同的表示法 181

while 181

do..while 182

for 182

foreach 183

break 185

continue 185

switch 185

require() 186

include() 186

require_once() 187

include_once() 187

6-9  functions 187

自定义函数(user-defined functions) 187

函数的参数(function arguments) 188

返回值(returning values) 189

old_function 190

以变量为名的函数(variable functions) 190

6-10 classes and objects 190

6-11 联机管理(connection handling) 191

6-12 php.ini 192

chapter7 php常用函数介绍 217

7-1  apache specific functions 217

7-2  array functions 218

7-3  classes/objects functions 240

概述 240

函数 241

7-4  date/time functions 245

7-5  directory functions 252

7-6  dom xml functions 253

概述 253

有正式文件说明的函数 256

说明文件还未齐全的函数 258

7-7 filesystem functions 259

7-8  ftp functions 275

概述 275

函数 276

7-9  http functions 280

7-10 image functions 282

概述 282

函数 283

7-11 imap, pop3 and nntp functions 294

概述 294

函数 294

综合范例 316

7-12 mail functions 333

7-13 mathematical functions 334

概述 334

函数 334

7-14 miscellaneous functions 341

7-15 mysql functions 354

概述 354

函数 355

7-16 network functions 362

7-17 php options & information 368

7-18 program execution functions 377

7-19 regular expression functions 378

综合范例 380

7-20 session handling functions 381

概述 381

函数 384

7-21 string functions 390

7-22 url functions 415

7-23 variable functions 417

7-24 xml parser functions 425

概述 425

函数 425

7-25 其它 432

chapter8 mysql与php的水乳交融 435

8-1  先练php基本功 435

8-2  使用php与mysql的基本概念 435

8-3  建立及规划数据库 436

8-4  输入数据 437

8-5  输出数据 438

8-6  整合html 438

chapter9 精选范例 439

9-1  form mail 439

form的部分 439

script部分 440

使用流程控制 441

9-2  cookie致欢迎词 443

cookie 443

http_user_agent 444

9-3  session购物车 447

建立产品对象 447

产品订购画面 448

计算价钱并写入session 450

读出session数据 453

把结果用email送出 454

9-4  图形处理 456

9-5  authentication 457

www authentication 457

建立database及tables 459

会员注册 459

会员登录 461

9-6  文件上传 464

9-7  用php删除垃圾邮件 467

筛选没有dns反查的信件 468

筛选在黑名单中的信件 471

删除邮件 474

9-8  xml版通讯簿 480

xml(extensible markup languages) 480

从php读出 481

利用xmltree() 481

使用xmldoc()或xmldocfile() 495

chapter10 应用程序集锦 497

10-1 mysql gui 497

10-2 mysql apis 497

10-3 phpmyadmin 498

10-4 phorum 498

10-5 web mail 499

horde imp 499

focalmail 499

10-6 phpmychat 499

appendix a mysql保留字 501

appendix b mysql的标准兼容程度 505

mysql extensions to ansi sql92 505

functionality missing from mysql 506

appendix c php3 到 php4 的改变 509

appendix d php/fi2.0到php3的改变 511

appendix e php faqs 515

关于 track_vars 515

在 function 中使用 statement 515

关于断行 516

关于所有的header信息 516

关于 select multiple 516

搭配 dreamweaver 或 frontpages 使用 517

其它 517

appendix f php版权 519

copyright(c) 1998 the php development team.all rights reserved. 519

appendix g apache版权 521

appendix h mysql版权 523

appendix i 光盘内容 525









已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

PHP4+MySQL完整自学方案
    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    亲爱的云图用户,
    光盘内的文件都可以直接点击浏览哦

    无需下载,在线查阅资料!

    loading icon