Re: Configuring a web server I haven't written yet...

From: Date: Fri, 24 Jan 2003 09:43:47 +0000
Subject: Re: Configuring a web server I haven't written yet...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18069@lists.php.net to get a copy of this message
Jill.Ramonsky@Aculab.com 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

« previous php.windows (#18069) next »