• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Section C.4. The CyberGreeting Script—greet.pl

C.4. The CyberGreeting Script—greet.pl

Example 3.2 is the script from Chapter 10. This script will read the information the user submitted, then create a unique file and write the greeting code inside it. Afterwards, the script will return to the sender a confirmation page containing an HTML form. By submitting the form, the sender sends email to the recipient. This email message contains a link to the file greet.pl just created. The file will be ready and waiting when the recipient follows the link in his or her email message.

C.4.1. Setting Up the Script

Unlike the script for Chapter 8, you need to conform to a directory structure in order to use greet.pl. In whatever directory you place greet.pl, the directory must have both read and execution privileges assigned to it. You must also have a directory inside it called greetings/ that has write privileges.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint