I'm setting up a large database application in PB, and I've worked up a method to generate the HTML I need for displaying the screens in HTML. I have plenty of experience with basic programming, database programming, and with simple HTML programming (sufficient for this project). However, I lack greatly in experience in CGI, HTTP, and so on. I did a whole day of research and decided on FastCGI as my solution (I didn't care for the philosophy behind the features in NET.ASP and some of the other solutions, I like to get to the most basic tools aside from Microsoft philosophy, and to me that is FastCGI), and now I'm looking for the best http server to host the site, and the right way to setup the FastCGI executable from PBwin. I only have a general idea on how data is passed from the http server to the FastCGI process, no real specific details.
Also, I'm trying to setup my development machine to test the CGI as I develop it, so it will need to be both the client and the server. Here is my list of questions:
1) In order to test a user form going from HTML to FastCGI(inPBwin), and displaying a dynamic response page, do I have to install an http server? Or can I test it without one?
2) If I need an http server for testing, then is it already in my Vista Ultimate? Or do I need to buy something? Or is there a recommended free alternative? And, will it run offline (no internet connection), for local testing purposes only?
3) To expand on question #1, is there a client side environment variable that contains the browser's post or query command contents? If so then I can bipass the cgi for now and grab the data there (to locally test the other programming I'm doing), however, even if that works, I don't know how to get the browser to automically view the response, so most likely I can't completely cut CGI from the test loop. I hope someone can elaborate on this point, if there's a solution to this.
4) I am designing this to handle many simultaneous users, each with a single instance, so my understanding is that this is FastCGI mode #1 (multiple connections, with one instance each). I found the tutorial on the forums for ordinary CGI through PB, it contained an include file, sample HTML, and a sample CGI program. Is there another one for FastCGI through PB? And, if so, then which server will work the best with it? I'm hoping to stick with Windows if possible, but I'm not admitting to it being the best, its just where I'm more familiar.
5) I will also need to keep the CGI process running (not blocked). I understand blocking between calls is standard, so if there's no way around it then I will have to setup a seperate exe as a service, and access it from the CGI program, so that only the CGI program is blocked. However, it would be nice if this could be handled in the same program. Could I setup a thread that gets blocked while the rest of the program keeps running?
I guess this is a long post, so I'll stop here.
Tony
Also, I'm trying to setup my development machine to test the CGI as I develop it, so it will need to be both the client and the server. Here is my list of questions:
1) In order to test a user form going from HTML to FastCGI(inPBwin), and displaying a dynamic response page, do I have to install an http server? Or can I test it without one?
2) If I need an http server for testing, then is it already in my Vista Ultimate? Or do I need to buy something? Or is there a recommended free alternative? And, will it run offline (no internet connection), for local testing purposes only?
3) To expand on question #1, is there a client side environment variable that contains the browser's post or query command contents? If so then I can bipass the cgi for now and grab the data there (to locally test the other programming I'm doing), however, even if that works, I don't know how to get the browser to automically view the response, so most likely I can't completely cut CGI from the test loop. I hope someone can elaborate on this point, if there's a solution to this.
4) I am designing this to handle many simultaneous users, each with a single instance, so my understanding is that this is FastCGI mode #1 (multiple connections, with one instance each). I found the tutorial on the forums for ordinary CGI through PB, it contained an include file, sample HTML, and a sample CGI program. Is there another one for FastCGI through PB? And, if so, then which server will work the best with it? I'm hoping to stick with Windows if possible, but I'm not admitting to it being the best, its just where I'm more familiar.
5) I will also need to keep the CGI process running (not blocked). I understand blocking between calls is standard, so if there's no way around it then I will have to setup a seperate exe as a service, and access it from the CGI program, so that only the CGI program is blocked. However, it would be nice if this could be handled in the same program. Could I setup a thread that gets blocked while the rest of the program keeps running?
I guess this is a long post, so I'll stop here.
Tony
Comment