Re: Info required
Medi Montaseri wrote: Having said thatI recommend Writing Apache Modules with Perl and C known as the 'eagle book'. See Chapter 3, 'The Apache Module Architecture and API' and for a quick feeling, see Figure 3-3, page 60, The Request Loop. Of course I'm new to mod_perl, so if Pokymon Masters find me in fault, please train me as I want to be the best pokymon trainer...yes I got a four-year old... Well if you're new to mod_perl the Eagle is exactly the book to help you on your way to becoming a Poki-master. However, other Poki-masters have distilled their experience into a great tome that they make available to you as a great gift--the mod_perl Guide: http://perl.apache.org/guide You must read both of these ancient texts to complete your quest.
Info required
Hi In the CGI environment , After getting the request from the client , based on the request the web server will load the cgi2perl module ( may be someother name) to act as interface between perl and Webserver. The cgi2perl will get the data from perl interpreter and give back to web server. This is the way it will work in cgi environment . The cgi2perl module will use the webserver API functions to interact with webserver. Like that , i want to understand how internally mod_perl is working apart from generic explanations. Where to get all those informations. Thanks in advance. Regards K.Murugan
Re: Info required
On Thu, 6 Sep 2001, Murugan K wrote: Hi In the CGI environment , After getting the request from the client , based on the request the web server will load the cgi2perl module ( may be someother name) to act as interface between perl and Webserver. The cgi2perl will get the data from perl interpreter and give back to web server. This is the way it will work in cgi environment . The cgi2perl module will use the webserver API functions to interact with webserver. Ouch, my brain hurts. By cgi2perl module, do you mean a CGI script or a perl handler? Or are you talking about something like FastCGI? Or SpeedyCGI? I'm confused. Like that , i want to understand how internally mod_perl is working apart from generic explanations. Where to get all those informations. See http://perl.apache.org/#docs No offense, but based on your explanation of the problem, I suggest first to read some basic CGI book before you dive into mod_perl. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Info required
Hi, It sounds like you want to read the source code. =) Download mod_perl (or perhaps you already have) and read the source to Apache.pm, mod_perl.pm, and so on, until you understand everything you want to. Be warned, it's not easy reading. There aren't many documents describing the internals of mod_perl, because the internals are subject to change, and the user generally shouldn't be concerned with what's going on there (unless they want to read the source). Murugan K [EMAIL PROTECTED] wrote: Hi In the CGI environment , After getting the request from the client , based on the request the web server will load the cgi2perl module ( may be someother name) to act as interface between perl and Webserver. The cgi2perl will get the data from perl interpreter and give back to web server. This is the way it will work in cgi environment . The cgi2perl module will use the webserver API functions to interact with webserver. Like that , i want to understand how internally mod_perl is working apart from generic explanations. Where to get all those informations. Thanks in advance. Regards K.Murugan
Re: Info required
Maybe this abstraction do the job mod_perl packages (or classes) binds with HTTP server process. Basically there is a perl interpreter loaded along with HTTP code and running in memorythe customer of mod_perl then loads additional perl code to alter the behavior of the HTTP server. The word 'alter' can be replaced with 'overload' or 'override' as well. As such, this customer would need to be aware of how the HTTP server is written. Sort of like writing an installable device driver. So now that your class (or package) is loaded and running along with the HTTP server, you can do many things, including crashing the HTTP server, just like a bad device driver. But on a good day, your package should have a handler (simply a function) that will be called (invoked) when certain events happen (an event is also a state, in which the HTTP server is). So now the thread of control is given to your package. Now you can do whatever. But whatever you do, you need to be in harmony with the rest of the HTTP cycle. And your day will end nicely, else you'll be drinking lots coffee...just like hacking with any kernel... Having said thatI recommend Writing Apache Modules with Perl and C known as the 'eagle book'. See Chapter 3, 'The Apache Module Architecture and API' and for a quick feeling, see Figure 3-3, page 60, The Request Loop. Of course I'm new to mod_perl, so if Pokymon Masters find me in fault, please train me as I want to be the best pokymon trainer...yes I got a four-year old... Good luck... On Thu, 6 Sep 2001, Ken Williams wrote: Hi, It sounds like you want to read the source code. =) Download mod_perl (or perhaps you already have) and read the source to Apache.pm, mod_perl.pm, and so on, until you understand everything you want to. Be warned, it's not easy reading. There aren't many documents describing the internals of mod_perl, because the internals are subject to change, and the user generally shouldn't be concerned with what's going on there (unless they want to read the source). Murugan K [EMAIL PROTECTED] wrote: Hi In the CGI environment , After getting the request from the client , based on the request the web server will load the cgi2perl module ( may be someother name) to act as interface between perl and Webserver. The cgi2perl will get the data from perl interpreter and give back to web server. This is the way it will work in cgi environment . The cgi2perl module will use the webserver API functions to interact with webserver. Like that , i want to understand how internally mod_perl is working apart from generic explanations. Where to get all those informations. Thanks in advance. Regards K.Murugan -- - Medi Montaseri [EMAIL PROTECTED] Unix Distributed Systems EngineerHTTP://www.CyberShell.com CyberShell Engineering -