php-windows Digest 9 Mar 2007 22:55:47 -0000 Issue 3161

Topics (messages 27568 through 27569):

Re: php with IIS
        27568 by: Bill Bolte

proc_open on windows in CLI - DOS windows
        27569 by: David V.

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 ---
Absolutely. You just need to download the windows version and run the
installer. Runs fine. You can even run PHP and ASP scripts side-by-side
if needed. 

-----Original Message-----
From: Harpreet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 9:57 AM
To: [email protected]; [email protected]
Subject: [PHP-WIN] php with IIS


Is there a way to run our PHP pages through Microsoft's IIS?

Regards,
Harpreet Kaur


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

--- End Message ---
--- Begin Message ---
I need a piece of advice from PHP experts and I'm sure you can help me.
I want to start and then control a process in PHP CLI on Windows.
I decided to use proc_open as it is really powerfull. It works
perfectly but I get a DOS window every time a process is started.
(wich in my case is hundreds of times during the operation).
I tried the Run method of the WScript.Shell object because it has on option to
hide the DOS window but I cannot control the process after I started
it.

I tried the Exec method of the WScript.Shell, I can interact with the
process using the pipes (pretty much the same way proc_open does) but
I cannot hide
the DOS windows.

I prefer using proc_open because it is portable on Linux.

I thought I would solve my problem using the new option : bypass_shell

I tried the following :

$proc_options = array('bypass_shell' => "1");
//print_r($proc_options); //DEBUG
$pipes = array();
$process = proc_open($cmd, $descriptorspec, $pipes,
$current_working_dir, NULL, $proc_options);

But I still get the flashing DOS boxes.

BTW : I also tried $proc_options = array('bypass_shell' => true); but
I get an error : Warning: proc_open(): CreateProcess failed

Do you know how I could use proc_open without this DOS command window ?

I use : PHP 5.2.2-dev (cli) (built: Mar  6 2007 20:08:25)
And : Windows XP Home SP2

Thank very much for your answer.


David V.

--- End Message ---

Reply via email to