PHP & MySQL® Everyday Apps for dummies ppt

459 200 0
PHP & MySQL® Everyday Apps for dummies ppt

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Troubleshooting 414 Index 417 xvii xviii PHP & MySQL Everyday Apps For Dummies Introduction B ecause you’re looking at a book called PHP & MySQL Everyday Apps For Dummies, I assume you want to build a Web application with the PHP scripting language and a MySQL backend database If you need to build a dynamic Web application for a specific purpose, you’re in the right place You will... If you’re interested in object-oriented programming in PHP, using the new object-oriented features added in PHP 5, you might want to check out the appropriate appendixes first Appendixes A and B describe the syntax and features of PHP available for object-oriented programming 5 6 PHP & MySQL Everyday Apps For Dummies If you modify an application for use on your own Web site or build your own application... Security Risks .24 Building Security into Your PHP Scripts 24 Don’t trust any information from an outside source 25 Storing information .30 xii PHP & MySQL Everyday Apps For Dummies Using system calls .31 Handling errors 32 MySQL Security .33 Setting up accounts and passwords 33 Accessing MySQL from PHP scripts 37 Understanding SQL injection... Designing the Forum database 311 Building the forum tables 314 Accessing the forum tables 315 Adding data to the database 316 Building the Forum Web Pages 317 Designing the Forum Web pages .317 Writing the code for the Forums page 321 Writing the code for the Threads page 324 Writing the code for the Messages page 328 Writing the code for the New... this book run with either PHP 4 or PHP 5, with the exception of the MySQL function calls See the following section, PHP and MySQL together,” for further information on the MySQL function calls The object-oriented programs in this book run only with PHP 5 PHP and MySQL together PHP interacts with MySQL by using built-in functions Currently, PHP provides two sets of functions for use when accessing MySQL... Post class .355 Writing the Database class .357 Writing the WebForm class 358 Writing the Forum application scripts 359 Writing the supporting functions 368 Possible Enhancements .371 xv xvi PHP & MySQL Everyday Apps For Dummies Part V: The Part of Tens 373 Chapter 9: Ten Hints for Application Development 375 Plan First 375 Be Consistent... New Message page 331 Writing the code for the Reply page .334 Building the Forum Application: Procedural Approach 337 Writing viewForums .php 337 Writing viewTopic .php 338 Writing viewThread .php 338 Writing postMessage .php 339 Writing postReply .php 342 Writing the supporting functions 345 Building the Forum Application: The Object-Oriented Approach... programming features of PHP for people who know PHP, but are unfamiliar with the concepts and terminology of object-oriented programming Appendix B describes the syntax of PHP object-oriented features for those who are familiar with object-oriented Introduction programming in another language Appendix C provides information on PHP functions used to interact with MySQL It provides tables for converting from... PHP & MySQL Everyday Apps For Dummies Creating the Shopping Cart Database 162 Designing the shopping cart database 162 Building the shopping cart database 164 Accessing the shopping cart database 165 Adding data to the shopping cart database 165 Building the Shopping Cart Web Pages 166 Designing the shopping cart Web pages 166 Writing the code for the product information... not run correctly See the following section for information on PHP versions PHP Currently, PHP is maintaining two versions: PHP 4 and PHP 5 The current versions are PHP 4.3.11 and PHP 5.0.4 PHP 5 is a major change from PHP 4 Enhancing object-oriented programming features was an important goal in the development of PHP 5 The creation and use of objects runs much faster, many object-oriented features have . Janet Valade PHP & MySQL ® Everyday Apps FOR DUMmIES ‰ 01_575872 ffirs.qxd 5/27/05 6:16 PM Page iii 01_575872 ffirs.qxd 5/27/05 6:16 PM Page ii PHP & MySQL ® Everyday Apps FOR DUMmIES ‰ 01_575872. 6:16 PM Page ii by Janet Valade PHP & MySQL ® Everyday Apps FOR DUMmIES ‰ 01_575872 ffirs.qxd 5/27/05 6:16 PM Page iii PHP & MySQL ® Everyday Apps For Dummies ® Published by Wiley Publishing,. topics. Janet currently has two published books: PHP & MySQL For Dummies, 2nd Edition, and PHP 5 For Dummies. In addition, she has authored chapters for several Linux and Web development books.

Ngày đăng: 10/08/2014, 02:22

Mục lục

  • Contents at a Glance

  • Table of Contents

    • Part I: Introducing Application Development ..................7

      • Chapter 1: Building Your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

      • Chapter 2: Building in Application Security . . . . . . . . . . . . . . . . . . . . .23

      • Part II: Building a User Authentication Application ......43

        • Chapter 3: User Authentication with HTTP . . . . . . . . . . . . . . . . . . . . . .45

        • Chapter 4: User Login Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77

        • Part III: Building Online Sales Applications ...............129

          • Chapter 5: Online Catalog Application . . . . . . . . . . . . . . . . . . . . . . . . .131

          • Chapter 6: Shopping Cart Application . . . . . . . . . . . . . . . . . . . . . . . . .159

          • Part IV: Building Other Useful Applications ...............233

            • Chapter 7: Building a Content Management System . . . . . . . . . . . . .235

            • Chapter 8: Hosting Discussions with a Web Forum . . . . . . . . . . . . . .309

            • Part V: The Part of Tens ............................................373

              • Chapter 9: Ten Hints for Application Development . . . . . . . . . . . . . .375

              • Chapter 10: Ten Sources of PHP Code . . . . . . . . . . . . . . . . . . . . . . . . .379

              • Part VI: Appendixes ..................................................383

                • Appendix A: Introducing Object-Oriented Programming . . . . . . . . .385

                • Appendix B: Object-Oriented Programming with PHP . . . . . . . . . . .391

                • Foolish Assumptions

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan