Đang chuẩn bị liên kết để tải về tài liệu:
PHP and MySQL Web Development - P72
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
PHP and MySQL Web Development - P72: PHP and MySQL Web Development teaches the reader to develop dynamic, secure, commercial Web sites. Using the same accessible, popular teaching style of the first edition, this best-selling book has been updated to reflect the rapidly changing landscape of MySQL and PHP. | Using Encryption in PHP 327 This will give you a binary file suitable for importing into the GPG or PGP keyring on another machine. If you want to email this key to people so they can import it into their key rings you can instead create an ASCII version like this gpg --export -a filename Having extracted the public key you can upload the file to your account on the Web server.You can do this with FTP. The following commands assume that you are using UNIX. The steps are the same for Windows but directory names and system commands will be different. Log into your account on the Web server and change the permissions on the file so that other users will be able to read it. Type chmod 644 filename You will need to create a keyring so that the user who your PHP scripts get executed as can use GPG. Which user this is depends on how your server is setup. It is often the user nobody but could be something else. Change to being the Web server user.You will need to have root access to the server to do this. On many systems the Web server runs as nobody.The following examples assume this. You can change it to the appropriate user on your system. If this is the case on your system type su root su nobody Create a directory for nobody to store their key ring and other GPG configuration information in. This will need to be in nobody s home directory. The home directory for each user is specified in etc passwd. On many Linux systems nobody s home directory defaults to which nobody will not have permission to write to. On many BSD systems nobody s home directory defaults to nonexistent which as it doesn t exist cannot be written to. On our system nobody has been assigned the home directory tmp.You will need to make sure your Web server user has a home directory that he can write to. Type cd mkdir .gnupg The user nobody will need a signing key of her own. To create this run this command again gpg --gen-key As your nobody user probably receives very little personal email you can .