php-windows Digest 30 Aug 2005 19:45:30 -0000 Issue 2761

Topics (messages 26291 through 26292):

Writing a server in windows php
        26291 by: George Cherian

Differences between debug and release?
        26292 by: Tim Larsen

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
 I need to write a long running server in php on windows. I am currently using 
'select' on sockets. The problem is that the work of the server involves 
activities that may block. But I don't want the server the block in such 
circumstances. So the proper way seems to be to use createProcess on each 
request. So I would like to know if createProcess will inherit the open sockets.

 Thanks.

--- End Message ---
--- Begin Message ---
I have built my own version of PHP on Windows (CLI) that enables sockets
and soap.  I did all of my testing using a version I compiled with
--enable-debug, and it seems to be working just fine.  When I switch to
the non-debug build, however, I'm having trouble with a lot of my scripts.

Here's a quick sample of what is failing:

putenv("PHP_BOB=Bob Jones");
With --enable-debug, this sets this environment variable for the duration
of my script.  Without --enable-debug, it returns true but appears to have
no effect.

exec( "dir", $out ); var_dump( $out );
With --enable-debug, this prints out the output array $out which
containst the results of the "dir" command.  Without --enable-debug, I'm
getting an empty array.

I have tried searching the online documentation and have set
safe_mode_allowed_env_vars and safe_mode_protected_env_vars, but I can't
seem to make these simple statements work with my non-debug version of
PHP.  Can anyone help me out?

Tim Larsen
Novell, Inc.

--- End Message ---

Reply via email to