Hi all,
I want to execute a command using the php function "exec", however I got the following error message:
Warning: Unable to fork [dir] in d:\inetpub\wwwroot\test.php on line 11
can anyone suggest me a solution??
Here is my php code
<head>
<title>Untitled</title>
</head>
<body>
<?
exec("dir e:\", $output, $value);
for($index=0; $index < count($output); $index++)
{
print("$output[$index]<br>\n");
}
?>
</body>
Thanks,
Shun