p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_php thread: error with exec

Message #1 by mbergeron@e... on Thu, 26 Jul 2001 22:50:12

I had a php page which uses exec function to run an exe : addgroup.

The exe addgroup create a folder on the server.

The code :


$command="C:/WebEdu/PHP/PHPTest2/addgroup.exe test1";

exec($command, $list, $ret);


My problem is that when I run the php page, it returns me :

$list = "Error 5"

$ret = 1


I wait for your advices!


Message #2 by Paul <paul@d...> on Thu, 26 Jul 2001 18:29:29 -0400
> $command="C:/WebEdu/PHP/PHPTest2/addgroup.exe test1";

Aren't the slashes leaning in the wrong direction for a Windows system?

  Return to Index