Thông tin chi tiết
Table of Contents| Index
WICKED COOL PHP.
INTRODUCTION
Chapter 1. THE FAQS OF LIFE—THE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW
Section 1.1. #1: Including Another File as a Part of Your Script
Section 1.2. #2: Highlighting Alternate Row Colors in a Table
Section 1.3. #3: Creating Previous/Next Links
Section 1.4. #4: Printing the Contents of an Array
Section 1.5. #5: Turning an Array into a Nonarray Variable That Can Be Restored Later
Section 1.6. #6: Sorting Multidimensional Arrays
Section 1.7. #7: Templating Your Site with Smarty
Chapter 2. CONFIGURING PHP
Section 2.1. Configuration Settings and the php.ini File
Section 2.2. #8: Revealing All of PHP's Settings
Section 2.3. #9: Reading an Individual Setting
Section 2.4. #10: Error Reporting
Section 2.5. #11: Suppressing All Error Messages
Section 2.6. #12: Extending the Run Time of a Script
Section 2.7. #13: Preventing Users from Uploading Large Files
Section 2.8. #14: Turning Off Registered Global Variables
Section 2.9. #15: Enabling Magic Quotes
Section 2.10. #16: Restricting the Files that PHP Can Access
Section 2.11. #17: Shutting Down Specific Functions
Section 2.12. #18: Adding Extensions to PHP
Chapter 3. PHP SECURITY
Section 3.1. Recommended Security Configuration Options
Section 3.2. #19: SQL Injection Attacks
Section 3.3. #20: Preventing Basic XSS Attacks
Section 3.4. #21: Using SafeHTML
Section 3.5. #22: Protecting Data with a One-Way Hash
Section 3.6. #23: Encrypting Data with Mcrypt
Section 3.7. #24: Generating Random Passwords
Chapter 4. WORKING WITH FORMS
Section 4.1. Security Measures: Forms Are Not Trustworthy
Section 4.2. Verification Strategies
Section 4.3. Using $_POST, $_GET, $_REQUEST, and $_FILES to Access Form Data
Section 4.4. #25: Fetching Form Variables Consistently and Safely
Section 4.5. #26: Trimming Excess Whitespace
Section 4.6. #27: Importing Form Variables into an Array
Section 4.7. #28: Making Sure a Response Is One of a Set of Given Values
Section 4.8. #29: Using Multiple Submit Buttons
Section 4.9. #30: Validating a Credit Card
Section 4.10. #31: Double-Checking a Credit Card's Expiration Date
Section 4.11. #32: Checking Valid Email Addresses
Section 4.12. #33: Checking American Phone Numbers
Chapter 5. WORKING WITH TEXT AND HTML
Section 5.1. #34: Extracting Part of a String
Section 5.2. #35: Making a String Uppercase, Lowercase, or Capitalized
Section 5.3. #36: Finding Substrings
Section 5.4. #37: Replacing Substrings
Section 5.5. #38: Finding and Fixing Misspelled Words with pspell
Section 5.6. #39: Regular Expressions
Section 5.7. #40: Rearranging a Table
Section 5.8. #41: Creating a Screen Scraper
Section 5.9. #42: Converting Plaintext into HTML-Ready Markup
Section 5.10. #43: Automatically Hyperlinking URLs
Section 5.11. #44: Stripping HTML Tags from Strings
Chapter 6. WORKING WITH DATES
Section 6.1. How Unix Time Works
Section 6.2. #45: Getting the Current Timestamp
Section 6.3. #46: Getting the Timestamp of a Date in the Past or Future
Section 6.4. #47: Formatting Dates and Times
Section 6.5. #48: Calculating the Day of the Week from a Given Date
Section 6.6. #49: Finding the Difference Between Two Dates
Section 6.7. MySQL Date Formats
Chapter 7. WORKING WITH FILES
Section 7.1. File Permissions
Section 7.2. #50: Placing a File's Contents into a Variable
Section 7.3. #51: Creating and Writing to a File
Section 7.4. #52: Checking to See If a File Exists
Section 7.5. #53: Deleting Files
Section 7.6. #54: Uploading Images to a Directory
Section 7.7. #55: Reading a Comma-Separated File
Chapter 8. USER AND SESSION TRACKING
Section 8.1. Using Cookies and Sessions to Track User Data
Section 8.2. #56: Creating a "Welcome Back, Username!" Message with Cookies
Section 8.3. #57: Using Sessions to Temporarily Store Data
Section 8.4. #58: Checking to See If a User's Browser Accepts Cookies
Section 8.5. #59: Redirecting Users to Different Pages
Section 8.6. #60: Forcing a User to Use SSL-Encrypted Pages
Section 8.7. #61: Extracting Client Information
Section 8.8. #62: Session Timeouts
Section 8.9. #63: A Simple Login System
Chapter 9. WORKING WITH EMAIL
Section 9.1. #64: Using PHPMailer to Send Mail
Section 9.2. #65: Using Email to Verify User Accounts
Chapter 10. WORKING WITH IMAGES
Section 10.1. #66: Creating a CAPTCHA (Security) Image
Section 10.2. #67: Creating Thumbnail Images
Chapter 11. USING cURL TO INTERACT WITH WEB SERVICES
Section 11.1. #68: Connecting to Other Websites
Section 11.2. #69: Using Cookies
Section 11.3. #70: Transforming XML into a Usable Form
Section 11.4. #71: Using Mapping Web Services
Section 11.5. #72: Using PHP and SOAP to Request Data from Amazon.com
Section 11.6. #73: Building a Web Service
Chapter 12. INTERMEDIATE PROJECTS
Section 12.1. #74: A User Poll
Section 12.2. #75: Electronic Greeting Cards
Section 12.3. #76: A Blogging System
Appendix A. APPENDIX
COLOPHON
Index
















Trích Dẫn
Tài liệu này được mua 1 lần.