Secure PHP Development- P126 pdf
... script. Listing 16-14: loadmonitor .php #!/usr/bin /php -q < ?php require_once(‘loadmonitor.conf’); require_once(‘class.Linux.inc .php ); require_once(‘common_functions .php ); $alertInfo = array(); $system ... load average of 25 for at least the last 15 minutes until the current time. 596 Part IV: Using PHP for Sysadmin Tasks 21 549669 ch16.qxd 4/4/03 9:27 AM Page 596 Listing 16-14 (...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P10 pdf
... change the code. A bet- ter solution is shown in Listing 1-7 and Listing 1-8. Listing 1-7: calc2 .php < ?php // Enable all error reporting error_reporting(E_ALL); require_once(‘calc2.conf’); require_once(‘calc2.errors’); // ... be called using a URL such as the following: http://yourserver/ch1/calc .php? num1=123&operator=%2B&num2=0 The calc .php script produces an output screen...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P23 pdf
... form of debug- ging. Although PHP- supported Integrated Development Environments (IDEs) are becoming available, they’re still not the primary development tools for most PHP developers, who are still ... framework. It can be used to perform basis application debugging. Listing 4-3: class.Debugger .php < ?php /* * CVS ID: $Id$ */ define(‘DEBUGGER_LOADED’, TRUE); class Debugger { var $m...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P43 pdf
... =$_SERVER[‘DOCUMENT_ROOT’] . ‘/pear’; $PHPLIB =$_SERVER[‘DOCUMENT_ROOT’] . ‘/phplib’; // Insert the path in the PHP include_path so that PHP // looks for PEAR, PHPLIB and our application framework // ... . $PEAR . ‘:’ . $PHPLIB . ‘:’ . $APP_FRAMEWORK_DIR . ‘:’ . ini_get(‘include_path’)); $AUTHENTICATION_URL = “/login/login .php ; $LOGOUT_URL = “/logout/logout .php ; $APP_MENU = ‘/home/hom...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P48 pdf
... info, preferences) class.IntranetUser .php class.Message .php class.ActivityAnalyzer .php Activity Analyzer Object (deals with activity reporting) Message Object (deals with messages) PHP Application Framework (Provides ... message. It allows an application to create and delete messages. The ch07/home/class/class.Message .php file in the CD-ROM is an implementation of the Message class....
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P56 pdf
... Application Classes With the intranet document publisher database designed, it’s time to look at the PHP classes needed to implement the application. Figure 8-2 shows the system dia- gram for the publisher. As
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P101 pdf
... Considerations Here we decided to allow anyone to add Tell-a-Friend forms using the taf_form_mngr .php application and restricted modify and delete privileges. However, you might want to restrict ... list of IP addresses, in such case you have to modify the authorize () method in the taf_form_mngr .php application. Summary In this chapter, you learned to develop a Tell-a-Friend system that...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P113 pdf
... The anatomy of a Campaign message. A message manager application called ecampaign_message_mngr .php, which can be found in ch15/apps directory in the CDROM, provides the message addition, modification, ... gender, etc. </p> <p> Click <a href="{URL1}"> here</a> to buy PHP applications.<br> Click <a href="{URL99}"> here</a> to lear...
Ngày tải lên: 07/07/2014, 07:20
Secure PHP Development- P122 pdf
... && !strcmp($thisDay, strtolower($when)) && !empty($what) ) { 578 Part IV: Using PHP for Sysadmin Tasks 21 549669 ch16.qxd 4/4/03 9:27 AM Page 578 // Weekly reminder array_push($reminders, ... ‘a+’); $today = date(‘M-d-Y h:i:s A’); if (! $logFD) return FALSE; Continued Chapter 16: Command-Line PHP Utilities 579 21 549669 ch16.qxd 4/4/03 9:27 AM Page 579 Listing 16-8 (Conti...
Ngày tải lên: 07/07/2014, 07:20