CGI: Internet Programming in C++ and C

Book Details
Availability: Usually ships in 24 hoursList Price: $61.00
Our Price: $61.00
You Save: $0 (0%)

Spotlight Customer Reviews
Average Customer Rating: 3.5Customer Rating: 4
Summary: Covers the fundamentals of CGI with C/C++ well...
Comment: ...but, for one thing, for the price, this book should come with a CD with all the code...it's a huge pain to type all that is given. Also, the C++ classes (of most concern to me) seem to be overly complex, theres a whole load of member functions to replace the amersands in a query string with newlines, and a bunch of other stuff, where a couple of strtok(); functions would have done the job.
The main strength of this book is that it teaches you the mechanics of how a compiled C/C++ program for CGI works. The string parsing doesn't take much ingenuity either, you just have to know the format.
Customer Rating: 2
Summary: The only one in its class, but...
Comment: Interesting that this is the only book besides the Boutell book that discusses C/C++ programming specifically for CGI. But there are many errors in the book that leaves me wondering if it would do more harm than good to use it. It has an emphasis on writing routines that could be better written in a scripting language: no templates or run time typing is used making the C++ code approach pretty out of date. It was a good try and sorely needed in the industry, but alas, it needs competition.
Customer Rating: 3
Summary: Need a tip that the book doesn't help with.
Comment: If you've bought the book and using winnt/2000(VStudio), it may help to know that standard cin will timeout. Try this concept.
#include
#include
void main()
{
char buff[1000];
int con_len = atoi(getenv("CONTENT_LENGTH"));
cout<<"Content-type: text/html\n\n";
(con_len)?cin.get(buff,con_len),cout<
The author of this book should have researched more using Windows. Ok book if you're using server soft designed for UNIX ie:Apache, but only really deserves 2-3 stars.
It could have been written better.