Re: Re: PHP from CLI with SAPI

From: Date: Mon, 18 Jul 2005 19:44:00 +0000
Subject: Re: Re: PHP from CLI with SAPI
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-218905@lists.php.net to get a copy of this message
Catalin Trifu wrote:
Hi, Why are you displeased with apache ? After all, the 60% share market of apache must mean something :) Catalin Fredrik Tolf wrote:
Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP support, but writing a new SAPI for PHP seems like overkill. Therefore, is it possible to use PHP from the command line, but still enable some HTTP-server-only stuff, like GET and POST variables, cookies, session management, file uploads, and so on? I haven't been able to find any docs on doing that, but I'm thinking that it should be possible. So, can someone either point me to some docs in this, or, lacking such, give me a short intro to it? Thanks for reading! Fredrik Tolf
All of the features you mentioned are those provided for you by Apache, barring the session management. If you really want to write your own http server then maybe take a look at the Apache source code. It will either give you some good pointers or make you realise what a huge task you are undertaking...
Mikey

« previous php.general (#218905) next »