Core PHP programming using PHP to build dynamic Web sites
Master PHP 4 — the open source Web scripting breakthrough Contains expert coverage of syntax, functions, design, and debugging Leverage the amazing performance of the new Zend engine! 650+ real-world code examples CD-ROM includes source code, plus everything you'll need to run PHP 4 implementat...
Other Authors: | |
---|---|
Format: | eBook |
Language: | Inglés |
Published: |
Upper Saddle River, NJ :
Prentice Hall
2001.
|
Edition: | 2nd edition |
Subjects: | |
See on Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627457106719 |
Table of Contents:
- Part 1 Programming With PHP 1
- Origins of PHP 4
- What Makes PHP Better than Its Alternatives 6
- Interfaces to External Systems 7
- How PHP Works with the Web Server 8
- Hardware and Software Requirements 9
- Installation on Apache for UNIX 10
- Installation on IIS for Windows NT 12
- Editing Scripts 12
- Algorithms 13
- What a PHP Script Looks Like 14
- Saving Data for Later 16
- Receiving User Input 18
- Choosing between Alternatives 22
- Repeating Code 22
- 2 Variables, Operators, and Expressions 25
- Identifiers 25
- Data Types 26
- Variable Creation and Scope 29
- Assigning Values to Variables 33
- Retrieving Values 35
- Freeing Memory 35
- Constants 37
- Operators 38
- Logical and Relational Operators 40
- Bitwise Operators 41
- Miscellaneous Operators 42
- Assignment Operators 46
- Expressions 46
- 3 Control Statements
- 51
- True and False 51
- If Statement 52
- ? Operator 53
- Switch Statement 56
- Loops 58
- While Statement 58
- Break Statement 60
- Continue Statement 61
- Do ... while Statement 62
- For Statement 63
- Foreach Statement 66
- exit, die, and return 66
- Evaluation of Boolean Expressions 67
- 4 Functions 69
- Declaring a Function 69
- Return Statement 71
- Scope and the global Statement 71
- Arguments 72
- Recursion 75
- Dynamic Function Calls 77
- 5 Arrays 79
- Single-Dimensional Arrays 79
- Indexing Arrays 80
- Initializing Arrays 82
- Multidimensional Arrays 83
- Casting Arrays 84
- Referencing Arrays Inside Strings 85
- 6 Classes and Objects 91
- Defining a Class 92
- Creating an Object 95
- Accessing Properties and Methods 96
- 7 I/O and Disk Access 99
- HTTP Connections 99
- Writing to the Browser
- 101
- Output Buffering 102
- Environment Variables 103
- Getting Input from Forms 104
- Cookies 106
- File Uploads 107
- PUT Method Requests 108
- Reading and Writing to Files 109
- Sessions 111
- Include and require Functions 114
- Part 2 Functional Reference 117
- 8 I/O Functions 119
- Sending Text to the Browser 119
- Output Buffering 122
- Files 124
- Compressed File Functions 163
- POSIX 170
- Debugging 175
- Session Handling 200
- Shell Commands 203
- HTTP Headers 205
- Network I/O 207
- FTP 214
- 9 Data Functions 225
- Data Types, Constants, and Variables 225
- Arrays 231
- Hashing 257
- Strings 261
- Encoding and Decoding 269
- Encryption 291
- Regular Expressions 297
- Perl-Compatible Regular Expressions 300
- 10 Mathematical Functions 307
- Common Math 307
- Random Numbers 316
- Arbitrary-Precision Numbers 319
- 11 Time, Date, and Configuration Functions 323
- Time and Date 323
- Alternative Calendars 332
- Configuration 336
- 12 Image Functions 345
- Analyzing Images 346
- Creating JPEG, PNG, and WBMP Images 348
- 13 Database Functions 385
- dBase 386
- DBM-style Database Abstraction 391
- filePro 397
- Informix 399
- InterBase 408
- mSQL 415
- MySQL 427
- ODBC 444
- Oracle 456
- Postgres 479
- Sybase 490
- 14 Miscellaneous Functions 501
- Apache 501
- Aspell 506
- COM 507
- Gettext 509
- IMAP 511
- Java 534
- LDAP 535
- Semaphores 548
- Shared Memory 550
- SNMP 555
- WDDX 558
- XML 561
- Part 3 Algorithms 577
- 15 Sorting, Searching, and Random Numbers 579
- Sorting 580
- Bubble Sort 580
- Quicksort 583
- Built-In Sorting Functions 585
- Sorting with a Comparison Function 591
- Searching 595
- Indexing 595
- Random Numbers 598
- Random Identifiers 602
- Choosing Banner Ads 605
- 16 Parsing and String Evaluation 607
- Tokenizing 607
- Regular Expressions 610
- Defining Regular Expressions 611
- Using Regular Expressions in PHP Scripts 612
- 17 Database Integration 623
- Building HTML Tables from SQL Queries 624
- Tracking Visitors with Session Identifiers 629
- Storing Content in a Database 634
- Database Abstraction Layers 642
- 18 Network 645
- HTTP Authentication 645
- Controlling Browser Cache 648
- Setting Document Type 651
- Email with Attachments 651
- Verifying an Email Address 656
- 19 Generating Graphics 663
- Dynamic Buttons 664
- Generating Graphs on the Fly 669
- Bar Graphs 669
- Pie Charts 672
- Stretching Single-Pixel Images 678
- Part 4
- Software Engineering 681
- 20 Integration with HTML 683
- Sprinkling PHP within an HTML Document 683
- Using PHP to Output All HTML 688
- Separating HTML from PHP 690
- Creating <SELECT> Fields 692
- Passing Arrays in Forms 695
- 21 Design 699
- Writing Requirements Specifications 700
- Writing Design Documents 704
- Using CVS 705
- Modularization Using include 706
- FreeEnergy 708
- FastTemplate 710
- Midgard 711
- Ariadne 711
- Preserving State and Providing Security 712
- Cloaking 713
- URLs Friendly to Search Engines 714
- Running a Script Regularly 716
- 22 Efficiency and Debugging 719
- Measuring Performance 720
- Fetching Database Query Results 721
- When to Store Content in a Database 722
- In-Line Debugging 724
- Remote Debugging 724
- Simulating HTTP Connections 725.