Re: HTTP server in PHP

From: Date: Tue, 29 Feb 2000 16:37:17 +0000
Subject: Re: HTTP server in PHP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16145@lists.php.net to get a copy of this message
> Jerry wrote: > > Hi, > > I'm trying to write a HTTP server in PHP. > > Dose any body know how to make a comand line run script act as a damon > and listen to a port ? > > I've seen it done before in PHP3 , but cant remember how ot was done. Since you're already doing it with PHP, which is hairy, you might as well run it from /etc/inetd.conf and use stdin and stdout. Not very efficient, but hey... ;-) fopen("php://stdin", "r") and fopen("php://stdout", "w") should do the trick then. - Stig

« previous php.dev (#16145) next »