April 2026
Intermediate
1009 pages
34h 15m
English
Many people, especially Microsoft employees, ask themselves: How could PHP achieve its incredible market share? There are certainly many reasons for this, but one is mentioned particularly often: In the beginning, it was particularly easy to work with form data.
The authors of this book have written several more general titles on web publishing and have also introduced Perl in earlier editions. The following excerpt from one of these books, from 2004, is a Perl script that accesses and outputs data in the form:
#!/usr/bin/perl print "Content-type: text/html\n\n"; if ($ENV{"REQUEST_METHOD"} eq "POST") { read(STDIN, $data, $ENV{"CONTENT_LENGTH"}); } else { $data = $ENV{"QUERY_STRING"}; } @pairs = split("&", $data); foreach ...Read now
Unlock full access