Rajiv Man Karmacharya wrote:
> php-general@lists.php.net
> 
> while trying to use exec('IECapt.exe ' . escapeshellarg($website_url) . ' ' . 
> escapeshellarg($cached_filename)); i get the following error
> 
> Warning: exec() [function.exec]: Unable to fork [IECapt.exe 
> "http://www.nepalnews.com.np"; 
> "C:/Inetpub/wwwroot/5531ed95934bee318939d9270b2db620.png"] ...................
> 
> This piece of code is from 
> http://www.zubrag.com/scripts/website-thumbnail-generator.php
> 
> I couldn't figure out why this Unable to fork is occuring. I search php.net 
> as well and it says, it might be related to permission issues.
> 
> I'm using winxp and iis.
> 
> I hope someone would help me with this.

probably permissions is the problem - i.e. IIS doesn't have the right to run a 
shell and/or the binary in question.

BUT who cares ... you shouldn't be using exec() in a script that's evoked via a 
webserver if you can really help it.

it seems you have a binary that takes a url and makes a visual snapshot of the 
resulting webpage as seen in IE, I
would suggest that you run a background task that regularly updates a cache of 
such images using the exec() technique
given above (maybe using a database as a source of urls to check) and then have 
you web scripts use the cached data
as needed.

otherwise your off into the dark woods of windows/IIS permissions (can't help 
you there I'm afraid)

> 
> Regards
> Rajiv

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

Reply via email to