Why would you do a system("php something.php")? Just put the code in the
php file and you're good to go.

i.e.

<httproot>/something.php contains:

<?php
echo $_POST['var']; // if post
echo $_GET['var']; // if get
//etc etc etc.. no need to have php call another php script...
?>

-Dash

I can't understand it.  I can't even understand the people who can
understand it.
                -- Queen Juliana of the Netherlands.

On Fri, 24 Jan 2003 [EMAIL PROTECTED] wrote:

> 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
>
>


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

Reply via email to