Item Details

Custom CGI Scripting With Perl

Kevin Hanegan
Format
Book
Published
New York : John Wiley, c2001.
Language
English
ISBN
0471395978 (pbk. : alk. paper))
Contents
  • Why Is CGI Useful? 4
  • Client/Server Applications 5
  • HTTP Protocol 7
  • CGI Process 9
  • Is CGI Dead? 13
  • Chapter 2 CGI Framework 17
  • Pros and Cons of Hosting Your Own Web Server 18
  • Hardware Concerns 18
  • Choosing a Platform 19
  • Choosing Web Server Software 21
  • What to Ask Your Web Hosting Company 23
  • Chapter 3 Installing a CGI Script 27
  • Selecting a Text Editor 27
  • Uploading Your Files 28
  • Getting around on Your Web Server 32
  • Installing Your First CGI Script 38
  • Part 2 Perl Building Blocks 41
  • Chapter 4 Introduction to Perl 43
  • Origin of Perl 44
  • About the Language 45
  • Why Use Perl? 46
  • Perl Competitors 47
  • Writing Perl 48
  • Designing Your First Perl Script for the Internet 49
  • Chapter 5 Using the Print Statement 53
  • Using the Print Function 54
  • Using the Here Document 60
  • Using q and qq 62
  • Chapter 6 Using Variables 65
  • Scalar Variables 66
  • List Arrays 71
  • Chapter 7 Statements and Conditionals 79
  • Conditional Control Statements 80
  • Looping Control Statements 82
  • Chapter 8 Using Subroutines 87
  • Subroutine Basics 88
  • Return Values 88
  • Chapter 9 Pattern Matching 91
  • Match Operator 92
  • Grouping and Memory 97
  • Substitutions 99
  • Chapter 10 File Input and Output 103
  • Creating a New File 104
  • File Tests 104
  • File Functions 106
  • Opening and Closing Files 106
  • Reading a File 108
  • Writing to a File 109
  • Appending to a File 110
  • File Permissions 111
  • File Locking 112
  • Chapter 11 Working with HTML Forms 115
  • Post 116
  • Get 118
  • Using cgi-lib.pl 119
  • Using CGI.pm 120
  • Page Redirection 121
  • Using Hidden Fields 122
  • Chapter 12 Using Databases 125
  • How Relational Databases Work 126
  • SQL 127
  • Using the DBI Module 129
  • Communicating with the Database 131
  • Chapter 13 Interacting with Your Operating System 135
  • Built-in Functions 136
  • System Calls 138
  • Sending Email 139
  • Getting the Time and Date 141
  • Part 3 Advanced Perl Techniques 147
  • Chapter 14 Error Handling 149
  • Checking for Possible Errors 150
  • Handling Errors 151
  • Chapter 15 Debugging Perl Scripts 155
  • Server Errors 156
  • Syntax Errors 157
  • Chapter 16 Securing Your Perl Script 161
  • Origins of Security Breeches 162
  • Solutions 162
  • Wrappers 164
  • Part 4 Putting It All Together 167
  • Chapter 17 Planning Your Script 169
  • Identify the Functionality 170
  • Maintainability 171
  • Chapter 18 Email Response Form 175
  • Address the Functionality 176
  • Script 176
  • Uploading the Script 180
  • Troubleshooting the Script 180
  • Variations 181
  • Chapter 19 Guestbook 183
  • Address the Functionality 184
  • Script 185
  • Advanced Technique 188
  • Uploading the Files 192
  • Troubleshooting the Files 192
  • Variations 193
  • Chapter 20 Flat-File Databases 195
  • Address the Functionality 196
  • Adding Entries to a Flat-File Database 196
  • Script 197
  • Searching the Database 200
  • Deleting Entries from the Database 207
  • Troubleshooting the Files 214
  • Variations 215
  • Appendix A Request and Response Headers 217
  • Sample Requests 217
  • General Headers 218
  • Date 218
  • Mime-Version 218
  • Pragma 219
  • Request Headers 219
  • Accept 219
  • Authorization 220
  • From 220
  • If-modified-since 220
  • Referer 220
  • User-agent 220
  • Response Headers 221
  • Retry-After 221
  • Server 221
  • Set-Cookie 221
  • Entity Headers 221
  • Allow 221
  • Expires 222
  • Content-encoding 222
  • Content-length 222
  • Content-type 222
  • Last-modified 223
  • Location 223
  • Appendix B Server Status Code 225
  • Informational 1XX 225
  • Success 2XX 226
  • Redirection 3XX 226
  • Client Request Incomplete 4XX 226
  • Server Error 5XX 227
  • Appendix C Basic Unix Commands 229
  • pwd 229
  • ls 229
  • mkdir 230
  • rmdir 230
  • cp 230
  • mv 231
  • rm 231
  • grep 231
  • Appendix D Environment Variables 233
  • Auth_Type 233
  • Content_Length 233
  • Content_Type 234
  • Gateway_Interface 234
  • Http_Accept 234
  • Http_User_Agent 234
  • Path_Info 234
  • Path_Translated 234
  • Query_String 234
  • Remote_Addr 235
  • Remote_Host 235
  • Remote_Ident 235
  • Request_Method 235
  • Remote_User 235
  • Script_Name 235
  • Server_Name 235
  • Server_Port 236
  • Server_Protocol 236
  • Server_Software 236
  • Appendix E Perl Special Variables 237
  • Special Variables Used with Files 237
  • $. 237
  • $/ 237
  • $### 238
  • $^F 238
  • $ARGV 238
  • Special Variables Used with Patterns 238
  • $& 238
  • $' 238
  • $+ 238
  • $* 238
  • Special Variables Used with Arrays 239
  • $" 239
  • $[ 239
  • $; 239
  • Special Variables Used with Printing 239
  • $, 239
  • $\ 239
  • $ 240
  • Special Variables Used with Processes 240
  • $$ 240
  • $? 240
  • $0 240
  • $] 240
  • $! 240
  • $@ 240
  • $^T 241
  • $^X 241
  • %ENV 241
  • %SIG 241
  • $< 241
  • $> 241
  • $) 241
  • Miscellaneous Special Variables 242
  • $_ 242
  • $^D 242
  • @ARGV 242
  • @INC 242
  • %INC 242
  • Appendix F Perl Built-in Functions 243
  • chdir 243
  • chmod 243
  • chop 244
  • chown 244
  • close 244
  • defined 244
  • delete 244
  • die 245
  • each 245
  • eval 245
  • exec 245
  • exists 245
  • exit 246
  • getc 246
  • grep 246
  • join 246
  • keys 246
  • last 247
  • length 247
  • localtime 247
  • mkdir 247
  • next 247
  • open 247
  • pop 248
  • print 248
  • push 248
  • read 248
  • rename 248
  • return 249
  • reverse 249
  • rmdir 249
  • s/reg exp/replacement text/ 249
  • select 249
  • shift 249
  • sort 250
  • splice 250
  • split 250
  • stat 250
  • substr 250
  • system 251
  • time 251
  • undef 251
  • unlink 251
  • values 251
  • Appendix G SQL Commands 253
  • Data Definition Language (DDL) Statements 253
  • Data Manipulation Language (DML) Statements 253
  • SQL Conditionals 256
  • Relational Operators 256
  • Logical Operators 257
  • Compound Conditionals 257
  • Appendix H Perl Quick Reference 259
  • Scalars 259
  • Uninterpreted Strings 260
  • Interpreted Strings 260
  • Arrays 260
  • Manipulating Arrays 260
  • Associative Arrays 261
  • Manipulating Associative Arrays 261
  • Control Statements 261
  • File Input/Output 262
  • Printing to a File 262
  • Reading from a File 262
  • Regular Expressions 263
  • Example Patterns 264
  • Modifiers 264
  • String Matching 264
  • Special Variables 265
  • Substitutions and Translations 265
  • split() and join() 266
  • $_ 266
  • Subroutines 266
  • Syntax 266
  • Returning Values 267.
Description
xxvii, 276 p. : ill. ; 24 cm.
Notes
  • "Wiley Computer Publishing."
  • Includes index.
Technical Details
  • Access in Virgo Classic

  • LEADER 07932pam a22003494a 4500
    001 u3701651
    003 SIRSI
    005 20010307134114.0
    008 001005s2001 nyua 001 0 eng
    010
      
      
    a| 00050983
    020
      
      
    a| 0471395978 (pbk. : alk. paper))
    035
      
      
    a| (Sirsi) i0471395978
    035
      
      
    a| (OCoLC)45162187
    040
      
      
    a| DLC c| DLC d| NhCcYBP d| MvI
    042
      
      
    a| pcc
    050
    0
    0
    a| QA76.73.P22 b| H36 2001
    082
    0
    0
    a| 005.2/762 2| 21
    090
      
      
    a| SCIENG/QA76.73.P22 b| H36 2001
    100
    1
      
    a| Hanegan, Kevin.
    245
    1
    0
    a| Custom CGI scripting with Perl / c| Kevin Hanegan.
    260
      
      
    a| New York : b| John Wiley, c| c2001.
    300
      
      
    a| xxvii, 276 p. : b| ill. ; c| 24 cm.
    500
      
      
    a| "Wiley Computer Publishing."
    500
      
      
    a| Includes index.
    505
    0
    0
    t| Why Is CGI Useful? g| 4 -- t| Client/Server Applications g| 5 -- t| HTTP Protocol g| 7 -- t| CGI Process g| 9 -- t| Is CGI Dead? g| 13 -- g| Chapter 2 t| CGI Framework g| 17 -- t| Pros and Cons of Hosting Your Own Web Server g| 18 -- t| Hardware Concerns g| 18 -- t| Choosing a Platform g| 19 -- t| Choosing Web Server Software g| 21 -- t| What to Ask Your Web Hosting Company g| 23 -- g| Chapter 3 t| Installing a CGI Script g| 27 -- t| Selecting a Text Editor g| 27 -- t| Uploading Your Files g| 28 -- t| Getting around on Your Web Server g| 32 -- t| Installing Your First CGI Script g| 38 -- g| Part 2 t| Perl Building Blocks g| 41 -- g| Chapter 4 t| Introduction to Perl g| 43 -- t| Origin of Perl g| 44 -- t| About the Language g| 45 -- t| Why Use Perl? g| 46 -- t| Perl Competitors g| 47 -- t| Writing Perl g| 48 -- t| Designing Your First Perl Script for the Internet g| 49 -- g| Chapter 5 t| Using the Print Statement g| 53 -- t| Using the Print Function g| 54 -- t| Using the Here Document g| 60 -- t| Using q and qq g| 62 -- g| Chapter 6 t| Using Variables g| 65 -- t| Scalar Variables g| 66 -- t| List Arrays g| 71 -- g| Chapter 7 t| Statements and Conditionals g| 79 -- t| Conditional Control Statements g| 80 -- t| Looping Control Statements g| 82 -- g| Chapter 8 t| Using Subroutines g| 87 -- t| Subroutine Basics g| 88 -- t| Return Values g| 88 -- g| Chapter 9 t| Pattern Matching g| 91 -- t| Match Operator g| 92 -- t| Grouping and Memory g| 97 -- t| Substitutions g| 99 -- g| Chapter 10 t| File Input and Output g| 103 -- t| Creating a New File g| 104 -- t| File Tests g| 104 -- t| File Functions g| 106 -- t| Opening and Closing Files g| 106 -- t| Reading a File g| 108 -- t| Writing to a File g| 109 -- t| Appending to a File g| 110 -- t| File Permissions g| 111 -- t| File Locking g| 112 -- g| Chapter 11 t| Working with HTML Forms g| 115 -- t| Post g| 116 -- t| Get g| 118 -- t| Using cgi-lib.pl g| 119 -- t| Using CGI.pm g| 120 -- t| Page Redirection g| 121 -- t| Using Hidden Fields g| 122 -- g| Chapter 12 t| Using Databases g| 125 -- t| How Relational Databases Work g| 126 -- t| SQL g| 127 -- t| Using the DBI Module g| 129 -- t| Communicating with the Database g| 131 -- g| Chapter 13 t| Interacting with Your Operating System g| 135 -- t| Built-in Functions g| 136 -- t| System Calls g| 138 -- t| Sending Email g| 139 -- t| Getting the Time and Date g| 141 -- g| Part 3 t| Advanced Perl Techniques g| 147 -- g| Chapter 14 t| Error Handling g| 149 -- t| Checking for Possible Errors g| 150 -- t| Handling Errors g| 151 -- g| Chapter 15 t| Debugging Perl Scripts g| 155 -- t| Server Errors g| 156 -- t| Syntax Errors g| 157 -- g| Chapter 16 t| Securing Your Perl Script g| 161 -- t| Origins of Security Breeches g| 162 -- t| Solutions g| 162 -- t| Wrappers g| 164 -- g| Part 4 t| Putting It All Together g| 167 -- g| Chapter 17 t| Planning Your Script g| 169 -- t| Identify the Functionality g| 170 -- t| Maintainability g| 171 -- g| Chapter 18 t| Email Response Form g| 175 -- t| Address the Functionality g| 176 -- t| Script g| 176 -- t| Uploading the Script g| 180 -- t| Troubleshooting the Script g| 180 -- t| Variations g| 181 -- g| Chapter 19 t| Guestbook g| 183 -- t| Address the Functionality g| 184 -- t| Script g| 185 -- t| Advanced Technique g| 188 -- t| Uploading the Files g| 192 -- t| Troubleshooting the Files g| 192 -- t| Variations g| 193 -- g| Chapter 20 t| Flat-File Databases g| 195 -- t| Address the Functionality g| 196 -- t| Adding Entries to a Flat-File Database g| 196 -- t| Script g| 197 -- t| Searching the Database g| 200 -- t| Deleting Entries from the Database g| 207 -- t| Troubleshooting the Files g| 214 -- t| Variations g| 215 -- g| Appendix A t| Request and Response Headers g| 217 -- t| Sample Requests g| 217 -- t| General Headers g| 218 -- t| Date g| 218 -- t| Mime-Version g| 218 -- t| Pragma g| 219 -- t| Request Headers g| 219 -- t| Accept g| 219 -- t| Authorization g| 220 -- t| From g| 220 -- t| If-modified-since g| 220 -- t| Referer g| 220 -- t| User-agent g| 220 -- t| Response Headers g| 221 -- t| Retry-After g| 221 -- t| Server g| 221 -- t| Set-Cookie g| 221 -- t| Entity Headers g| 221 -- t| Allow g| 221 -- t| Expires g| 222 -- t| Content-encoding g| 222 -- t| Content-length g| 222 -- t| Content-type g| 222 -- t| Last-modified g| 223 -- t| Location g| 223 -- g| Appendix B t| Server Status Code g| 225 -- t| Informational 1XX g| 225 -- t| Success 2XX g| 226 -- t| Redirection 3XX g| 226 -- t| Client Request Incomplete 4XX g| 226 -- t| Server Error 5XX g| 227 -- g| Appendix C t| Basic Unix Commands g| 229 -- t| pwd g| 229 -- t| ls g| 229 -- t| mkdir g| 230 -- t| rmdir g| 230 -- t| cp g| 230 -- t| mv g| 231 -- t| rm g| 231 -- t| grep g| 231 -- g| Appendix D t| Environment Variables g| 233 -- t| Auth_Type g| 233 -- t| Content_Length g| 233 -- t| Content_Type g| 234 -- t| Gateway_Interface g| 234 -- t| Http_Accept g| 234 -- t| Http_User_Agent g| 234 -- t| Path_Info g| 234 -- t| Path_Translated g| 234 -- t| Query_String g| 234 -- t| Remote_Addr g| 235 -- t| Remote_Host g| 235 -- t| Remote_Ident g| 235 -- t| Request_Method g| 235 -- t| Remote_User g| 235 -- t| Script_Name g| 235 -- t| Server_Name g| 235 -- t| Server_Port g| 236 -- t| Server_Protocol g| 236 -- t| Server_Software g| 236 -- g| Appendix E t| Perl Special Variables g| 237 -- t| Special Variables Used with Files g| 237 -- t| $. g| 237 -- t| $/ g| 237 -- t| $### g| 238 -- t| $^F g| 238 -- t| $ARGV g| 238 -- t| Special Variables Used with Patterns g| 238 -- t| $& g| 238 -- t| $' g| 238 -- t| $' g| 238 -- t| $+ g| 238 -- t| $* g| 238 -- t| Special Variables Used with Arrays g| 239 -- t| $" g| 239 -- t| $[ g| 239 -- t| $; g| 239 -- t| Special Variables Used with Printing g| 239 -- t| $, g| 239 -- t| $\ g| 239 -- t| $ g| 240 -- t| Special Variables Used with Processes g| 240 -- t| $$ g| 240 -- t| $? g| 240 -- t| $0 g| 240 -- t| $] g| 240 -- t| $! g| 240 -- t| $@ g| 240 -- t| $^T g| 241 -- t| $^X g| 241 -- t| %ENV g| 241 -- t| %SIG g| 241 -- t| $< g| 241 -- t| $> g| 241 -- t| $) g| 241 -- t| Miscellaneous Special Variables g| 242 -- t| $_ g| 242 -- t| $^D g| 242 -- t| @ARGV g| 242 -- t| @INC g| 242 -- t| %INC g| 242 -- g| Appendix F t| Perl Built-in Functions g| 243 -- t| chdir g| 243 -- t| chmod g| 243 -- t| chop g| 244 -- t| chown g| 244 -- t| close g| 244 -- t| defined g| 244 -- t| delete g| 244 -- t| die g| 245 -- t| each g| 245 -- t| eval g| 245 -- t| exec g| 245 -- t| exists g| 245 -- t| exit g| 246 -- t| getc g| 246 -- t| grep g| 246 -- t| join g| 246 -- t| keys g| 246 -- t| last g| 247 -- t| length g| 247 -- t| localtime g| 247 -- t| mkdir g| 247 -- t| next g| 247 -- t| open g| 247 -- t| pop g| 248 -- t| print g| 248 -- t| push g| 248 -- t| read g| 248 -- t| rename g| 248 -- t| return g| 249 -- t| reverse g| 249 -- t| rmdir g| 249 -- t| s/reg exp/replacement text/ g| 249 -- t| select g| 249 -- t| shift g| 249 -- t| sort g| 250 -- t| splice g| 250 -- t| split g| 250 -- t| stat g| 250 -- t| substr g| 250 -- t| system g| 251 -- t| time g| 251 -- t| undef g| 251 -- t| unlink g| 251 -- t| values g| 251 -- g| Appendix G t| SQL Commands g| 253 -- t| Data Definition Language (DDL) Statements g| 253 -- t| Data Manipulation Language (DML) Statements g| 253 -- t| SQL Conditionals g| 256 -- t| Relational Operators g| 256 -- t| Logical Operators g| 257 -- t| Compound Conditionals g| 257 -- g| Appendix H t| Perl Quick Reference g| 259 -- t| Scalars g| 259 -- t| Uninterpreted Strings g| 260 -- t| Interpreted Strings g| 260 -- t| Arrays g| 260 -- t| Manipulating Arrays g| 260 -- t| Associative Arrays g| 261 -- t| Manipulating Associative Arrays g| 261 -- t| Control Statements g| 261 -- t| File Input/Output g| 262 -- t| Printing to a File g| 262 -- t| Reading from a File g| 262 -- t| Regular Expressions g| 263 -- t| Example Patterns g| 264 -- t| Modifiers g| 264 -- t| String Matching g| 264 -- t| Special Variables g| 265 -- t| Substitutions and Translations g| 265 -- t| split() and join() g| 266 -- t| $_ g| 266 -- t| Subroutines g| 266 -- t| Syntax g| 266 -- t| Returning Values g| 267.
    596
      
      
    a| 5
    650
      
    0
    a| Perl (Computer program language)
    650
      
    0
    a| CGI (Computer network protocol)
    650
      
    0
    a| Web sites x| Design.
    999
      
      
    a| QA76.73 .P22 H36 2001 w| LC i| X004477135 k| CHECKEDOUT l| STACKS m| SCI-ENG t| BOOK

Availability

Google Preview

Library Location Map Availability Call Number
Brown Science and Engineering CHECKED OUT N/A Unavailable