> Run this on a command line and hit the IP on port 8000. All it does is
> read the request and send it back as the response. It ignores POST
> bodies but it would be pretty simple to modify it so it echo's those
> back too.
>    http://dev.stut.net/php/httpsrv.phps

Stuart, that is quite a bit of work! Nice!

I also learned some really nice tips here, such as your usage of
define for the header and footer, and why that is the cleanest
solution when you need the content-length. The usage of sockets is new
to me too, but this was easy to follow.


Dotan Cohen


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to