Hi guys,

I'm writing a web server for Windows. I want to know how to make it support
PHP.

Here's the easy bit (which I know how to do)...
1) A client requests a web page called "anything.php"
2) The server notices the extension ".php", looks this up in the server's
configuration settings, and says "Aha - this is a PHP script".
3) The server runs the PHP script, and sends the output stream back to the
client.

Here's the bit I _DON'T_ know how to do...

How the hell can my server INITIALISE the superglobal variables $_GET,
$_POST, $_SERVER, $_SESSION, etc. in preparation for running the script?

... I mean, it's an easy enough matter to call:

        system("php something.php")

to run a PHP script ... but that won't initialise the superglobal variables.
There doesn't appear to be a command line parameter to php.exe that lets you
specify this information. So how's it done? How do other web servers do it?

Any suggestion would be appreciated.

Jill

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

Reply via email to