[EMAIL PROTECTED] wrote:

Hey Jill,

I'm writing a web server for Windows. I want to know how to make it support
PHP.
>
Here's the bit I _DON'T_ know how to do...

How can my server INITIALISE the superglobal variables $_GET,
$_POST, $_SERVER, $_SESSION, etc. in preparation for running the script?
In the binary distribution of PHP for Windows, there is a file called php4ts.dll. You will need to link your web server to this DLL. It contains the PHP interpreter. This is the way other SAPI (Server API) implementations work.

Get the PHP source code, if you don't have it already, and unpack it to a directory of your choice. In the php-4.3.0 (or whatever) directory, look in the sapi directory for examples about how PHP interacts with Apache, ISAPI and other web server extensions. I have done something similar to what you are doing so you may email me politely (i.e. without using profane/blasphemous language) if you have any other questions.

--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.capio.com


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

Reply via email to