Phát triển web với PHP và MySQL - p 37 doc
... administrator or the GPG documentation. Listings 15.1 and 15.2 enable people to send encrypted email by using PHP to call GPG. LISTING 15.1 private_mail .php Our HTML Form to Send Encrypted Email <html> <body> <h1>Send ... gpg where to find the key ring // On this system, user nobody’s home directory is /tmp/ putenv(“GNUPGHOME=/tmp/.gnupg”); Implementing Secure Transaction...
Ngày tải lên: 06/07/2014, 19:20
... reusable .php, it probably won’t surprise you when “Here is a very simple PHP statement.” appears in your browser. If you load main .php, something a little more interesting happens. The output of ... a very simple PHP statement.<BR>”; ?> We placed the PHP code within the file in PHP tags. You will need to do this if you want PHP code within a required file treated as PHP...
Ngày tải lên: 06/07/2014, 19:20
... way. The function phpinfo() is often useful in testing because it displays the installed version of PHP, information about PHP, the Web server set-up, and the values of various PHP and server variables. ... this: php3 _auto_prepend_file /home/username/include/header.inc php3 _auto_append_file /home/username/include/footer.inc Setting options in the .htaccess file rather than in either...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 18 docx
... move operations. For real-world objects, Object-Oriented PHP C HAPTER 6 6 OBJECT-ORIENTED PHP 149 08 7842 CH06 3/6/01 3:34 PM Page 149 Using PHP P ART I 148 This chapter explains concepts of ... classname { function classname($param) { echo “Constructor called with parameter $param <br>”; } } Object-Oriented PHP C HAPTER 6 6 OBJECT-ORIENTED PHP 151 08 7842 CH06 3/6/01 3:34 P...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 22 docx
... revoke her privileges altogether: mysql& gt; revoke all -& gt; on books.* -& gt; from sally; Setting Up a User for the Web You will need to set up a user for your PHP scripts to connect to MySQL. Again ... her the appropriate privileges: mysql& gt; grant select, insert, update, delete, index, alter, create, drop -& gt; on books.* -& gt; to sally; Note that we don’t need to...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 41 doc
... section of your php. ini file. (For more details on configur- ing PHP, see Appendix A, “Installing PHP 4 and MySQL. ”) Advanced PHP Techniques P ART IV 378 22 7842 CH17 3/6/01 3:39 PM Page 378 ?> </body> </html> Lets’ ... need to run the PHP configure program with the enable-ftp option, and then rerun make. To use the FTP functions with the Win32 binary, you will...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 43 docx
... functions in PHP and MySQL, you can consult the relevant sections of the manuals at http:/ /php. net/manual/ref.datetime .php http://www .mysql. com/documentation /mysql/ commented/ manual .php? section=Date_and_time_functions If ... about JPEG/JFIF at the official JPEG site: http://www.jpeg.org/public/jpeghomepage.htm PNG PNG (pronounced “ping”) stands for Portable Network Graphics. This...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 67 doc
... is {hostname/protocol:port}boxname Building Practical PHP and MySQL Projects P ART V 642 33 7842 CH27 3/6/01 3:41 PM Page 642 As you can see, we then execute the display_account_setup() function ... form index .php? action=view-message&messageid=6 Building a Web- Based Email Service C HAPTER 27 27 BUILDING A WEB- BASED EMAIL SERVICE 643 33 7842 CH27 3/6/01 3:41 PM Page 643 After e...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 70 doc
... : { display_information($id); break; } Building Practical PHP and MySQL Projects P ART V 666 34 7842 CH28 3/6/01 3:46 PM Page 666 LISTING 28.2 Continued case ‘store-change-password’ : { if(change_password(get_email(), $old_passwd, $new_passwd, ... form store-change- Logged-in users Updates user’s password password in password the database create-mail Administrators Displays form to allo...
Ngày tải lên: 06/07/2014, 19:20
Phát triển web với PHP và MySQL - p 74 doc
... for purposes as varied as philosophical discussion groups and product technical support. In this chapter, we implement a Web forum in PHP. An alternative is to use an existing package, such as Phorum, ... in Figure 29.1. Building Web Forums C HAPTER 29 29 BUILDING WEB FORUMS 713 Initial posting Reply 1 Reply 1 to Reply 1 Reply 2 Reply 3 Reply 1 to Reply 3 Reply 1 to Reply 1 FIGURE 29.1...
Ngày tải lên: 06/07/2014, 19:20