On Mon, 2006-13-11 at 22:54 +0100, Joachim Zobel wrote:
> Am Montag, den 13.11.2006, 21:39 +0100 schrieb Toni Pizà:
> > I will try to read the code of mod_php in ordrer to understand how the
> > CGI relates the server web and the php interpreter!
> 
> If you want to look at a webservers source code to understand what a
> webserver does, apache is too complex. Try a simple one:
> 
> http://sites.inka.de/sites/bigred/sw/tinyhttpd.html

Though:
        Note: Please stop using TinyHTTPD. [...] when you need a
        lightweight HTTP server for actual use, try Boa. This is better
        suited even for the purpose for which TinyHTTPD was originally
        intended. For a better web server in perl, look at Plexus or
        HTTPi.

I suggested (off-list) he look at:
        http://docs.python.org/lib/module-CGIHTTPServer.html
and
        http://docs.python.org/lib/module-BaseHTTPServer.html
both of which are used quite a bit for development and since the first
of these should be able to execute php as cgi out-of-the-box ... I'm now
trying to persuade him to give up programming it in C :-).

> 
> Sincerely,
> Joachim
> 
> 

-- 
--gh


Reply via email to