Shell window opens on exec call

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Shell window opens on exec call

Postby rracasanu » 16. March 2007 16:57

Hello,

I have installed XAMPP 1.6.0a on a Windows XP SP2 without changing anything to the install defaults. Everything seems to work OK, except for the exec function. Whenever it is used, a shell window opens while the command is being executed. For example, I have this test script:

<?php
$a = $b = $c = "";

$a = exec("dir *", $b, $c);

var_dump($a, $b, $c);
?>

When I open it in the browser, a shell window opens for a second and disappears after the command has finished executing.

I haven't seen this behavior with manual installations of PHP both as an Apache module and CGI.

Is there anything that I can change to prevent the shell window from opening?

Thanks,
Razvan
rracasanu
 
Posts: 2
Joined: 16. March 2007 16:25

Postby Wiedmann » 16. March 2007 17:04

Is there anything that I can change to prevent the shell window from opening?

Start Apache as a Windows service (without desktop interaction) and not as a application.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby rracasanu » 16. March 2007 17:18

Hello,

Indeed this has solved the problem.

Thank you,
Razvan
rracasanu
 
Posts: 2
Joined: 16. March 2007 16:25


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 37 guests