I am currently developing a webserver based on PHP. Implementing CGI I am running into a few problems with POST data which is supposed to be passed to PHP via the STDIN, according to the CGI spec (http://cgi-spec.golux.com/draft-coar-cgi-v11-03-clean.html#6.2). I am on a Win2K machine and using the prefered way of appending "< FileWithPostData.txt" does not seem to work.
If anyone has an idea how to get PHP to read the POST data, plz let me know. populating "HTTP_RAW_POST_DATA" via putenv() did not help for the $_POST array to be populated.