图书介绍

PHP 4.0编程指南与样例PDF|Epub|txt|kindle电子书版本网盘下载

PHP 4.0编程指南与样例
  • 武海平,付小龙编著 著
  • 出版社: 北京:人民邮电出版社
  • ISBN:7115090386
  • 出版时间:2000
  • 标注页数:374页
  • 文件大小:20MB
  • 文件页数:398页
  • 主题词:

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

PHP 4.0编程指南与样例PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

第1章 PHP基础1

1.1 PHP的基本概念1

1.2 PHP的安装3

1.2.1 在UNIX操作系统上安装PHP3

1.2.2 PHP在Windows95/98/2000/NT上的安装17

第2章 PHP变量20

2.1 PHP的基本语法结构20

2.1.1 PHP的变量类型21

2.1.2 PHP的类型转换27

2.1.3 PHP的预定义变量28

2.1.4 PHP的外部变量29

2.1.5 PHP定义的一些常量30

2.2 PHP的数组操作函数32

array32

array_walk32

arsort33

asort34

count34

current35

each35

end36

key37

ksort37

list38

next38

pos39

prev39

range39

reset39

rsort40

shuffle41

sizeof42

sort42

uasort43

uksort43

usort44

第3章 表达式、运算符与控制语句46

3.1 PHP的表达式46

3.2 PHP的运算符47

算术运算符47

赋值运算符49

字符串运算符49

位运算符50

逻辑运算符50

其他运算符号51

3.3 PHP的控制流程(语句)51

IF语句52

ELSE语句52

ELSEIF语句53

WHILE语句54

DO..WHILE语句55

FOR语句56

BREAK语句57

CONTINUE语句58

SWITCH语句58

REQUIRE语句60

INCLUDE语句60

3.4 PHP的函数61

第4章 PHP开发数据库应用65

4.1 数据库操作语言——SQL65

在表的基本操作中常用SQL命令介绍66

4.2 PHP数据库应用范例——留言板71

4.3 PHP数据库应用范例——用户认证81

4.4 PHP数据库应用范例——自动创建UNIX用户88

4.5 常用的PHP操作数据库的函数95

PHP操作SQL Server数据库函数库95

MySQL数据库函数库99

Oracle 8数据库函数库111

Oracle数据库函数库116

Sybase数据库函数库123

5.1 通信协议和身份认证129

第5章 PHP的安全和用户认证129

5.1.1 HTTP协议的特点130

5.1.2 身份认证在HTTP协议中的困难130

5.2 Cookie技术简介131

5.2.1 Cookie的概念131

5.2.2 Cookie的工作方式132

5.2.3 Cookie的属性133

5.3 如何在PHP中使用Cookie134

5.3.1 设置Cookie134

5.3.2 接收和处理Cookie136

5.3.4 使用Cookie的限制137

5.3.3 删除Cookie137

5.4 通过Cookie进行身份认证138

5.4.1 身份认证中需要注意的问题138

5.4.2 建立身份认证的数据表138

5.4.3 身份认证的函数设计和实现139

5.4.4 身份认证的PHP脚本145

5.5 Session的使用150

5.5.1 Session的概念150

5.5.3 如何在PHP中使用Session151

5.5.2 Session的工作方式151

第6章 PHP一般函数调用158

6.1 访问计数器158

6.2 聊天室163

6.2.1 聊天室的登录163

6.2.2 聊天室的显示界面167

6.2.3 聊天室在线人数监测168

6.2.4 聊天室指挥中心171

6.2.5 聊天室的主动更新与被动更新173

6.3 文件的上载与下载177

6.3.1 文件上载178

6.3.2 文件下载179

6.4 apache服务器专用函数库184

apache_lookup_uri184

apache_note184

Getallheaders185

virtual186

6.5 文件系统函数库186

basename186

chgrp186

clearstatcache187

chmod187

copy188

delete188

dirname188

diskfreespace189

fclose189

feof189

fgetc190

fgetcsv190

fgetss191

file191

fgets191

file_exists192

fileatime192

filectime192

filegroup192

fileinode193

filemtime193

fileowner193

fileperms193

flock194

fopen194

filetype194

filesize194

fpassthru195

fputs196

fread196

fseek196

ftell197

fwrite197

set_file_buffer197

is_link198

is_file198

is_executable198

is_dir198

is_readable199

is_writeable199

link199

linkinfo200

mkdir200

pclose200

readfile201

readlink201

popen201

rename202

rewind202

rmdir202

stat202

lstat203

symlink204

tempnam204

touch204

umask204

error_log205

unlink205

6.6 PHP选项及相关信息函数库205

error_reporting206

getenv206

get_cfg_var207

get_current_user207

get_magic_quotes_gpc207

get_magic_quotes_runtime207

getmypid208

getmyuid208

getmyinode208

getlastmod208

getrusage209

phpinfo209

phpversion209

putenv210

set_magic_quotes_runtime210

set_time_limit210

7.1 使用PHP和GD进行图形处理211

7.1.1 基本工作原理211

第7章 PHP的图像操作211

7.1.2 线形图形213

7.2 使用VH图形库编写UNIX监控系统217

7.3 PHP的图形函数226

GetImageSize226

ImageArc227

ImageChar227

ImageCharUp227

ImageCopyResized228

ImageCreate228

ImageColorTransparent228

ImageColorAllocate228

ImageDestroy229

ImageFilledRectangle229

ImageFilledPolygon229

ImageLine229

ImageRectangle230

ImageCreateFromGIF230

ImageGIF230

ImagePNG230

ImageCreateFromPNG231

第8章 PHP中的日期处理232

8.1 日期与时间处理232

8.1.1 得到目前的日期和时间232

8.1.2 日期和时间的显示形式232

8.1.3 转换现在的日期为UNIX的时间戳值234

8.1.4 修改日期235

8.1.5 为PHP添加DateAdd函数237

8.1.6 为PHP添加DataDiff函数238

date240

checkdate240

8.2 日期与时间函数库240

strftime241

getdate242

gettimeofday243

gmdate243

mktime243

gmmktime244

time244

microtime244

exec245

escapeshellcmd245

附录 PHP4.0常用函数库245

程序执行功能函数库245

system246

passthru246

字符串处理函数库246

AddSlashes246

bin2hex246

Chop247

Chr247

crypt248

chunk_split248

convert_cyr_string248

echo249

explode249

flush249

get_meta_tags249

htmlspecialchars250

ltrim251

join251

md5251

htmlentities251

implode251

n12br252

Ord252

parse_str252

quoted_printable_decode253

QuoteMeta253

rawurldecode253

printf253

print253

rawurlencode254

setlocale254

similar_text255

soundex255

sprintf255

strchr256

strcmp256

strcspn256

strpos257

strrpos257

strlen257

strip_tags257

StripSlashes257

strrchr258

strrev258

strspn258

strstr259

strtok259

strtolower259

strtoupper259

substr260

str_replace260

strtr260

trim261

ucfirst261

ucwords261

变量处理函数库261

gettype261

intval261

is_float262

is_double262

is_array262

doubleval262

empty262

is_int263

is_integer263

is_long263

is_object263

is_real263

is_string263

strval264

unset264

settype264

isset264

IMAP电子邮件系统函数库265

imap_append265

imap_base64265

imap_body265

imap_check266

imap_close266

imap_fetchbody267

imap_expunge267

imap_deletemailbox267

imap_delete267

imap_createmailbox267

imap_fetchstructure268

imap_header269

imap_headers269

imap_listmailbox270

imap_listsubscribed270

imap_mail_copy270

imap_open271

imap_num_recent271

imap_num_msg271

imap_mail_move271

imap_ping272

imap_renamemailbox272

imap_reopen272

imap_subscribe273

imap_undelete273

imap_unsubscribe273

imap_qprint273

imap_mailboxmsginfo274

imap_scanmailbox274

imap_binary274

imap_8bit274

imap_rfc822_write_address275

imap_rfc822_parse_adrlist275

imap_setflag_full275

imap_clearflag_full276

imap_sort276

imap_fetchheader276

imap_getsubscribed277

imap_msgno277

imap_getmaiboxes277

imap_uid277

imap_search278

imap_last_error278

imap_errors279

imap_alerts279

imap_status279

mail279

Informix数据库函数库280

ifx_connect280

ifx_pconnect280

ifx_query281

ifx_close281

ifx_do282

ifx_prepare282

ifx_error283

ifx_errormsg283

ifx_affected_rows284

ifx_getsqlca284

ifx_fetch_row285

ifx_htmltbl_result286

ifx_fieldtypes286

ifx_num_rows287

ifx_fieldproperties287

ifx_num_fields287

ifx_free_result288

ifx_create_char288

ifx_free_char288

ifx_update_char288

ifx_get_char288

ifx_get_blob289

ifx_free_blob289

ifx_copy_blob289

ifx_create_blob289

ifx_update_blob290

ifx_blobinfile_mode290

ifx_textasvarchar290

ifx_byteasvarchar290

ifx_nullformat290

ifxus_create_slob291

ifx_free_slob291

ifxus_close_slob291

ifxus_seek_slob292

ifxus_read_slob292

ifxus_open_slob292

ifxus_tell_slob292

ifxus_write_slob293

LDAP目录协议函数库293

ldap_add294

ldap_mod_add295

ldap_mod_del295

ldap_mod_replace295

ldap_delete296

ldap_count_entries296

ldap_bind296

ldap_close296

ldap_connect296

ldap_dn2ufn297

ldap_explode_dn297

ldap_first_attribute297

ldap_first_entry297

ldap_free_result298

ldap_get_attributes298

ldap_get_values299

ldap_get_dn299

ldap_get_entries299

ldap_list300

ldap_modify300

ldap_next_attribute301

ldap_next_entry301

ldap_read301

ldap_unbind302

数学运算函数库302

ldap_search302

Abs303

Acos303

Asin303

Atan303

Atan2303

BinDec304

Ceil304

base_convert304

Cos305

DecBin305

DecHex305

DecOct306

Exp306

Floor306

getrandmax306

Log10307

max307

HexDec307

Log307

min308

mt_rand308

mt_srand308

mt_getrandmax309

number_format309

pow310

rand310

pi310

OctDec310

round311

Sin311

Sqrt311

srand312

Tan312

mcrypt编码函数库312

mcrypt_get_cipher_name314

mcrypt_get_block_size314

mcrypt_get_key_size314

mcrypt_create_iv314

mcrypt_cfb315

mcrypt_ecb315

mcrypt_cbc315

mcrypt_ofb316

ODBC数据库链接函数库316

mit316

odbc_binmode317

odbc_close317

odbc_close_all317

odbc_commit317

odbc_do318

odbc_exec318

odbc_cursor318

odbc_connect318

odbc_execute319

odbc_fetch_into319

odbc_fetch_row319

odbc_field_name320

odbc_field_type320

odbc_field_len320

odbc_num_fields321

odbc_pconnect321

odbc_longreadlen321

odbc_free_result321

odbc_prepare322

odbc_num_rows322

odbc_result322

odbc_result_all322

odbc_rollback323

odbc_setoption323

FTP文件传输函数库323

ftp_cdup324

ftp_pwd324

ftp_login324

ftp_connect324

ftp_chdir325

ftp_mkdir325

ftp_rmdir325

ftp_nlist325

ftp_rawlist325

ftp_systype326

ftp_pasv326

ftp_get326

ftp_fget326

ftp_rename327

ftp_mdtm327

ftp_put327

ftp_fput327

ftp_size327

ftp_delete328

ftp_quit328

网络函数库328

fsockopen328

pfsockopen329

set_socket_blocking329

gethostbyaddr329

gethostbynamel330

gethostbyname330

checkdnsrr331

getmxrr331

openlog331

syslog332

closelog332

debugger_on332

debugger_off332

aspell_check_raw333

aspell_check333

拼写检查函数库333

aspell_new333

aspell_suggest334

BC高精确度函数库334

bcadd334

bccomp334

bcdiv335

bcmod335

bcmul335

bcpow335

bcscale336

bcsqrt336

bcsub336

dBase格式表函数库336

dbase_create337

dbase_open337

dbase_delete_record338

dbase_add_record338

dbase_get_record338

dbase_pack338

dbase_close338

dbase_numfields339

dbase_numrecords339

目录管理函数库339

chdir339

dir340

closedir340

opendir340

filePro数据库函数库341

rewinddir341

readdir341

filepro342

filepro_fieldname342

filepro_fieldtype342

filepro_fieldwidth342

filepro_retrieve342

filepro_fieldcount343

filepro_rowcount343

HTTP相关函数库343

header343

setcookie344

mail345

电子邮件函数库345

mhash哈希函数库346

mhash_get_hash_name346

mhash_get_block_size347

mhash_count347

mhash347

NIS函数库348

yp_get_default_domain348

yp_order348

yp_first349

yp_master349

yp_match349

yp_next350

yp_errno350

yp_err_string351

Perl相容语法函数库351

preg_match351

preg_match_all352

ereg353

正则表达式函数库353

preg_split353

preg_replace353

ereg_replace354

eregi354

eregi_replace354

split355

sql_regcase355

SNMP网管函数库355

snmpget355

snmp_get_quick_print356

snmpwalkoid356

snmpwalk356

snmp_set_quick_print357

URL处理函数库357

parse_url357

urldecode358

urlencode358

base64_encode358

base64_decode358

session_name359

session_destroy359

session_start359

Session函数库359

session_module_name360

session_save_path360

session_id360

session_register360

session_unregister360

recode_file361

recode_string361

GNU记录函数库361

session_encode361

session_decode361

session_is_registered361

信号与共享内存函数库362

sem_get362

sem_acquire362

sem_release362

shm_attach362

shm_get_var363

shm_put_var363

shm_remove363

shm_detach363

shm_remove_var364

压缩文件函数库364

gzclose364

gzeof364

gzfile364

gzgetc364

gzgetss365

gzopen365

gzgets365

gzpassthru366

gzputs366

gzread366

gzrewind366

gzseek367

gztell367

readgzfile367

gzwrite367

xml_set_object368

xml_parser_create368

XML解析函数库368

xml_set_element_handler369

xml_set_character_data_handler370

xml_set_processing_instruction_handler370

xml_set_default_handler371

xml_set_unparsed_entity_decl_handler371

xml_set_notation_decl_handler371

xml_set_external_entity_ref_handler371

xml_get_current_line_number372

xml_get_current_column_number372

xml_get_error_code372

xml_error_string372

xml_parse372

xml_get_current_byte_index373

xml_parser_free373

xml_parser_set_option373

xml_parser_get_option373

utf8_decode373

utf8_encode374

热门推荐