[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating web server
On Fri, Apr 14, 2000 at 10:04:08PM +0200, Boltyansky Boris wrote:
> Can someone give me a link to a complete guide about making a web server
> based on Linux from my computer?, or to write to the list and explain me
> step by step how can I do that?
<joking>
($__,$L_,$_L,$___,$L_L)=split/\|/,pack"H28H60l","5e47455420282e2a29207c20285c",
"2f6367692d62696e5c2f2e2a29207c5c3a7c485454502f302e39203230301";use Socket;
socket(L__,PF_INET,SOCK_STREAM,getprotobyname('tcp'));setsockopt(L__,
SOL_SOCKET,SO_REUSEADDR,$L_L);bind(L__,sockaddr_in($ARGV[0],INADDR_ANY));
listen(L__,5);for(;accept(_L_,L__);close _L_){$_=<_L_>;/$__/;open __L,/$L_/?
"$ARGV[1]$1|":"<$ARGV[1]$1";while(<_L_>=~/$_L/){}print _L_"$___\n\n";while(
$l=<__L>){print _L_$l;}}
</joking>
"This program is an HTTP/0.9 web server. It's single-threaded and
supports CGI. To use it, pass as its first argument the TCP port to
listen on and as the second argument the document root."
By Joe Futrelle <futrelle@ncsa.uiuc.edu>, submitted to the 3rd
Annual Objuscated Perl Contest, category 1, "Most Powerful".
Sorry--couldn't help it.
}:^)
--
believing is seeing
gaal@forum2.org
http://www.forum2.org/gaal/
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il