Авторизация
Поиск по указателям
Lerdorf R., Tatroe K., MacIntyre P. — Programming PHP
Обсудите книгу на научном форуме
Нашли опечатку? Выделите ее мышкой и нажмите Ctrl+Enter
Название: Programming PHP
Авторы: Lerdorf R., Tatroe K., MacIntyre P.
Аннотация: This book does exactly what I believe it is intended to do; Teach a new PHP programmer the basic syntax of the language and give insight into PHP's more language specific features. Having used PHP before there were a two main things I was looking for in this book.
The first of these was Readability. There are two very different ways to read this book. The first is to just go through it as if it were a novel. For someone who is completely new to the language, this would be the ideal method as it steps through the different parts of the language, gradually increasing in difficulty and complexity as you go. However, my main problem with this is found in the later chapters, where the topics turn from the language itself to very specific tasks and libraries. Of course it's nice to know that PHP has the capability to write PDF files, but I don't think that should be a part of this book. It isn't standard by any means and for someone like myself, if I wasn't already experienced in PHP I would still feel like it could be space better used in this otherwise great book.
The other way to go through the book is to simply search what you are looking for. I read this book mainly to refresh myself on some of the concepts and syntax of the language, and was able to do just that in a timely fashion. If there is something you're specifically looking for, it can be found relatively quickly. Sometimes the progression of topics within a chapter can seem a little out of order, but the chapters are short and concise enough to where this isn't really a problem.
The second important factor was the actual content of the book. As far as reading the descriptions of what the code does and how it all works, I thought it was well written and would be sufficient who has had experience in another language. Based on a few of the other reviews I looked at of this book, I will have to agree that some of the code does not perhaps use the best standards. However, that's not the purpose of this book. Sometimes the most complex and efficient solution is not the best for teaching and explaining. I'd much rather see some basic code structure repeated five times in a block than have to decipher some complex for loop to achieve a menial task.
Aside from the style of the code though, my only real concern is with the code relating to the specific extensions, which I really don't feel belong. Other than this though, each section of code is clearly explained by the text preceding and is written in a manner clear enough for a novice in the field and language to understand.
Язык:
Рубрика: Computer science /
Статус предметного указателя: Готов указатель с номерами страниц
ed2k: ed2k stats
Издание: 2nd
Год издания: 2002
Количество страниц: 508
Добавлена в каталог: 13.04.2014
Операции: Положить на полку |
Скопировать ссылку для форума | Скопировать ID
Предметный указатель
Php.ini file, disable_functions option 295
Php.ini file, extension INI entries 347
Php.ini file, maximum size (in bytes) for file uploads 290
Php.ini file, memory_limit directive 331
Php.ini file, safe_mode directive 292
Php.ini file, session information storage, customizing 185
Php.ini file, track_errors option 304
Php.ini file, variables_order directive 287
phpcredits() function 431
phpinfo() function 10 432
phpinfo() function, checking for database support 190
phpinfo() function, GD extension, information on 215
phpversion() function 432
PHP_ADD_INCLUDE() macro 329
PHP_ADD_LIBRARY_WITH_PATH() macro 329
PHP_FE() macro 322
PHP_INI_MH() prototype macro 348
php_logo_guid() function 431
PHP_MINIT_FUNCTION() 348
php_sapi_name() function 431
php_uname() function 431
PI (Process Instruction) XML tag 58
Pi() function 432
Pipes 359
Pipes, opening to process executed by shell command 432
Pixels, checking color index for 230
Pixels, setting color for 220
Placeholders for database query values 198
Placeholders, XML entities as 268
Platform, testing for 355
PNG image format 216
PNG image format in PDF files 246
PNG image format, black square on white background (example) 217
PNG image format, changing to JPEG 219
PNG image format, output function for 218
polygons, drawing 220
popen() function 432
popen() function, security risks 295
Portability, database-specific extensions and 189
Portability, optimizing database connections for 194
Portable Document Format see"PDF"
pos() function 433
Position of smaller string within larger string 93
Positioning, cursor in PDF text 239
Positioning, images in PDF documents 247
Positioning, text in PDF files 239
Positions in indexed arrays 116
Positive lookahead and lookbehind assertions 108
POSIX-style regular expressions 99—103
POSIX-style regular expressions, anchors in 100
POSIX-style regular expressions, functions for 101
POSIX-style regular expressions, functions for, matching 101—103
POSIX-style regular expressions, functions for, replacing 103
POSIX-style regular expressions, functions for, splitting strings 103
POST method (HTTP) 159
POST method (HTTP) in form processing 162
POST method (HTTP), $HTTP_POST_VARS array 160
POST method (HTTP), global variables for, controlling 287
POST method (HTTP), quotes state for operations 407
POST method (HTTP), sending XML-RPC request via 282
POST method (HTTP), XML-RPC request, constructing for 283
PostgreSQL extension 466
PostScript font metrics 244
Post_max_size configuration option 290
Pow() function 433
Precedence, operator 34 36
Precedence, operator, associativity and 36
Precedence, operator, two basic rules for 36
Precision specifier for floating-point numbers 77
Preferences for page colors see "Color" "Cookies"
Preferences, session, saving across requests 187
Preferences, using from sessions 184
preg_match() function 110
preg_quote() function 115
preg_replace() function 112
preg_replace() function, calling eval() with /e option 295
preg_split() function 114
prepare() method 198
prev() function 126 433
print() function 76 433
printf() function 76 434
printf() function, format modifiers 76
printf() function, type specifier 77
Printing with echo 76
Printing with print() function 76
Printing with printf() function 76
Printing with print_r() function 78
Printing with var_dump() function 79
Printing, error messages 306
Printing, strings 75—79
print_r() function 78 433
Private and public methods or properties 142
process IDs 410
Processing instructions for XML documents 267
Production environment, php.ini directives for 286
profiling 311
Program execution, functions for 377
Progressive JPEGs in PDF files 246
Properties 28
properties, accessing 142
Properties, class, getting 148 405
properties, declaring 144
Properties, object 141
Properties, object, getting 407
Properties, object, getting array of 149
Properties, object, rows in database query results 197
Protocols 410
Proxy caches 313
Pseudorandom-number generator, seeding 443
Pspell library 466
putenv() function 434
Pval/zval data type 331—335
Pval/zval data type, macros to access zval fields 333—335
Pval/zval data type, MAKE_STD_ZVAL() macro 332
Pval/zval data type, SEPARATE_ZVAL() macro 332
Pval/zval data type, struct 332
Pval/zval data type, zval dereferencing 335
Pval/zval data type, zval_copy_ctor() function 332
PWS (Personal Web Server) 352
PWS (Personal Web Server), configuring PHP for 353
Quality, JPEG images 218
Quantifiers in regular expressions 98
Quantifiers in regular expressions, greedy and non-greedy 105
Query result object, fetching data from 195
query() function, placeholders for values 198
Queues, treating arrays as 138
Quoted_printable_decode() function 434
quotemeta() function 435
Quoting for regular expressions 115
Quoting, form parameters automatically 164
Quoting, get_magic_quotes_gpc() 407
Quoting, set_magic_quotes_runtime() 439
Quoting, string constants 72—75
Quoting, string constants in double-quoted strings 73
Quoting, string constants in single-quoted strings 73
Quoting, string constants, here documents 74
Quoting, string constants, variable interpolation 72
Quoting, strings in PHP array keys 117
Race condition, created by changing file permissions 291
rad2deg() function 435
rand() function 435
rand() function, largest value returned by 410
Randomizing array order 134
Range of characters in regular expressions 97
range() function 119 435
Raw image format, PDF files 246
rawurldecode() function 84 435
rawurlencode() function 84 435
RDBMSs (Relational Database Management Systems) 190
Read and write handlers for sessions 186
readdir() function 436
readfile() function 224 436
readline library (GNU) 466
readlink() function 436
Real numbers 24 417
realpath() function 436
realpath() function, checking filenames with 288
Recode library (GNU) 467
rectangles, drawing 220
Recursive structures, avoiding use of print_r() or var_dump() on 79
Red, green, blue (RGB) color values 216 218
Red, green, blue (RGB) color values, getting with ImageColorsForlndex() 230
Redirection 176 314
Redirection, Unix shell 359
Reducing an array 128
Reference counting, managing memory with 33
References in extensions 342
References, incrementing count for zval 337
References, to external entities in XML 268
References, to variable stored in an objects 142
References, to variable stored in another variable 30
Register_globals (php.ini file), disabling for security purposes 286
Register_globals (php.ini file), security of global variables 285
register_shutdown_function() 436
register_tick_function() 437
Regular expressions 95—115
Regular expressions, alternatives in 98
regular expressions, character classes 97
Regular expressions, manipulating strings with 442
Regular expressions, patterns, types of 96
Regular expressions, Perl-compatible 103—115
Regular expressions, Perl-compatible, anchors 105
Regular expressions, Perl-compatible, backreferences 106
Regular expressions, Perl-compatible, character classes 105
Regular expressions, Perl-compatible, conditional expressions in 110
Regular expressions, Perl-compatible, cut subpattern 109
Regular expressions, Perl-compatible, delimiters 104
Regular expressions, Perl-compatible, flags (trailing options) 107
Regular expressions, Perl-compatible, functions for working with 110—115
Regular expressions, Perl-compatible, inline options 108
Regular expressions, Perl-compatible, lookahead and lookbehind assertions 108
Regular expressions, Perl-compatible, match behavior 104
Regular expressions, Perl-compatible, non-capturing groups 106
Regular expressions, Perl-compatible, quantifiers and greed 105
Regular expressions, PHP, differences from Perl 115
Regular expressions, POSIX-style 99—103
Regular expressions, POSIX-style, anchors 100
Regular expressions, POSIX-style, character classes 99
Regular expressions, POSIX-style, functions for 101
Regular expressions, quantifiers for repeating patterns 98
Regular expressions, search and replace operations with ereg() and ereg_replace () 394
Relational Database Management Systems (RDBMSs) 190
Relative paths, checking for 288
Relative paths, security problems with 287
Remote files, opening with PHP functions, security risks of 287
Remote files, retrieving on Unix and Windows 357
Remote Procedure Call (RPC) 360
Remote servers, YAZ toolkit 469
Removing, array elements 123
Removing, leading or trailing whitespace from strings 80
rename() function 437
Repeating sequences, quantifiers for 98
repeating strings 91
Replacing, characters in strings 90
Replacing, matched patterns in strings 112
Replacing, matched strings, POSIX regular expressions 103
Replication, MySQL 315
Replication, reverse proxies and 313—316
reporting errors 303
Reporting errors, disabling 304
Reporting errors, error-reporting values 304
Reporting errors, turning off entirely 305
Request/response cycle, HTTP, GET requests 160
Request/response cycle, HTTP, request 158
Request/response cycle, HTTP, response 159
Requests, XML-RPC 282
require construct 54—56
require() function 357
require() function, opening remote files, security and 287
Require_once construct 55
require_once() function 297
Reserved words, stdClass 143
reset() function 126 437
Resources 29 417
Resources, handles, returning type of 408
Resources, using in extensions 349
Rest of a string, searches returning 94
restore_error_handler() function 306 437
return statements 54 63
Return values, extension functions 338—341
RETVAL_LONG() macro 338
Reverse-proxy caches 313
Reversing, array element order 134
reversing, strings 90
rewind() function 437
Rewinddir() function 437
Rewrite() function 302
Right shift (>>) operator 42
Right-justified strings 77
rmdir() function 437
rollback() method 202
rot13 extension 322
rot13() function 322
round() function 438
RPC (Remote Procedure Call) 360
rsort() function 130 438
RSS document, generating using PHP 264
RTRIM() function 80 438
runtime errors 303
Sablotron C library (XSLT support for PHP) 277
Safe_mode directive (php.ini file) 292
SAPI (Server Abstraction API) 318 343
SAPI (Server Abstraction API), getting name of 431
SAPI (Server Abstraction API), linking PHP into server via 352
Sapi_globals_struct 343
Satellite CORBA Client extension 467
scalar types 23
scalar values 418
scaling images 227
Scaling images in PDF files 247—249
Scaling images in PDF files, nonproportional scaling 248
Schemas for XML documents 263
Scientific notation 25
Scope 31
Scope, overriding with pass by reference 66
Scope, variables in functions 64—66
Scope, variables in functions, global, accessing 65
Script tag, enclosing PHP code in 59
Scripts (current), name of ($PHP_SELF variable) 160
Search and replace operations with preg_replace() 112
Search and replace operations, POSIX-style regular expressions 103
Search engine (mnoGoSearch) 464
Searching, array for values 129
Searching, strings, functions for 93—95
Searching, strings, position, returning 93
Searching, strings, rest of string, returning 94
Searching, strings, URLs, decomposing into components 95
Searching, strings, using masks 94
Secure Sockets Layer (SSL) 188
Security 285—296
Security of web applications 285
Security, concealing PHP libraries 293
Security, eval() function, risks of 294
security, file permissions 291
Security, file permissions, session files 291
Security, file uploads 289
Security, file uploads, distrusting browser-supplied filenames 289
Security, file uploads, size of uploaded files 290
Security, file uploads, surviving register_globals 290
Security, filenames and 287—289
Реклама