Secure PHP Development- P50 pot
... class.DBI .php, which is part of the PEAR packages. $PHPLIB_DIR Set to the directory where the PHPLIB packages are stored, because the Template class (template.inc) is part of the PHPLIB packages. $APP_FRAMEWORK_DIR ... directory. $AUTHENTICATION_URL Point the central authentication application (login .php) , which is part of our application framework. The default value is /login/login .ph...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P1 pot
... Secure PHP Development: Building 50 Practical Applications Mohammed J. Kabir 01549669 FM.qxd 4/4/03 9:23 AM Page iii TIMELY. PRACTICAL. RELIABLE. Mohammed J. Kabir Secure PHP Development Wiley ... of 50 secure PHP applications that you can put to use immediately to solve a variety of practical problems. And he includes expert tips and techniques that show you how to write your own...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P6 potx
... . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 Part IV Using PHP for Sysadmin Tasks Chapter 16 Command-Line PHP Utilities . . . . . . . . . . . . . . . . . . . 559 Working with the ... Appendixes Appendix A What’s on the CD-ROM . . . . . . . . . . . . . . . . . . . . . . . . 753 Appendix B PHP Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757 A...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P7 pot
... Listing 1-2. Listing 1-1: A PHP Script with Embedded User Interface < ?php // Turn on all error reporting error_reporting(E_ALL); Continued Chapter 1: Features of Practical PHP Applications 5 03 ... 2 Chapter 1 Features of Practical PHP Applications IN THIS CHAPTER ◆ Exploring the features of a practical PHP application ◆ Putting the features to work in applications PHP BEGAN AS...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P12 potx
... of bad_whois .php script called better_whois .php. Listing 2-2: better_whois .php < ?php // Set error reporting to all error_reporting(E_ALL); // Get domain name 28 Part I: Designing PHP Applications 04 ... shows a simple PHP script called bad_whois .php (bad_ has been added so that you think twice before actually putting this script in any real Web site). Listing 2-1: bad_whois ....
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P13 potx
... associative array. Now let’s implement bad_autovars .php without the automatic field variables as shown in Listing 2-4. Listing 2-4: autovars_free .php < ?php // Enable all error reporting error_reporting(E_ALL); // ... not. // not implemented. echo “Check if user is customer <br>”; return FALSE; } ?> < ?php // Enable all error reporting error_reporting(E_ALL); // Initializ...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P18 potx
... the code on the accompanying CD-ROM and/or on the Web site for the book at www.evoknow.com/phpbook .php. Best Practices for Web Security In this section I will discuss a set of best practices ... $template->set_var(‘CMD_NAME’, $cmdName); $template->parse(‘options’,’optionBlock’, TRUE); } Chapter 3: PHP Best Practices 57 05 549669 ch03.qxd 4/4/03 9:24 AM Page 57 All the code for t...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P32 pot
... discussed in Chapter 6. Listing 5-2 shows the login application login .php, which implements these features. Listing 5-2: login .php < ?php require_once “login.conf”; require_once “login.errors”; /* Session ... $LOGIN_TEMPLATE); $template->set_block(‘fh’, “mainBlock”); $template->set_var(‘SELF_PATH’, $PHP_ SELF); $template->set_var(‘ATTEMPT’, $this- >getSessionField(“SESSION...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P36 pot
... auth.ddl script is shown in Listing 5-11. Listing 5-11: auth.sql # phpMyAdmin MySQL-Dump # version 2.2.5 # http://phpwizard.net/phpMyAdmin/ 146 Part II: Developing Intranet Solutions 08 549669 ... 4/4/03 9:24 AM Page 150 # http://phpmyadmin.sourceforge.net/ (download page) # # Host: localhost # Generation Time: May 14, 2002 at 01:55 PM # Server version: 3.23.35 # PHP Version: 4.1.0 # Databa...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P37 pot
... lib.session_handler .php in the framework directory. For example, if you’re keeping the class.PHPApplication .php in the /usr /php/ framework directory, then you should put the lib.session_handler .php in the ... libsession_handler .php which implements all these functions. Listing 5-12: lib.session_handler .php < ?php error_reporting(E_ALL); require_once(‘constants .php ); require_...
Ngày tải lên: 07/07/2014, 07:20