Jump to content

exec() IIS7


coolant

Recommended Posts

If I run the following code..

 

<?
exec("dir",$results);
$count=count($results);
for($i=0;$i<$count;$i++)
{
   print "$results[$i]<br>";
}
?>

 

and it works. It produces "Directory of C:\Inetpub\www.domain.com\windows" which is where the index.php (the code above) is located. So it's not a problem of giving cmd.exe permissions and all that "fun" stuff.

 

I am trying to run the following code which works in the command line -

 

"C:\Program Files\WebShot\webshotcmd.exe" /url www.yahoo.com

 

How would I do this?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/39435-exec-iis7/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.